Merge pull request #5683 from tueksta/fix-cleanup-estimate
Bugfix: Calculate actual delta in usage
This commit is contained in:
commit
29fd1d05dd
@ -316,12 +316,12 @@ module Homebrew
|
||||
|
||||
if dry_run?
|
||||
puts "Would remove: #{path} (#{path.abv})"
|
||||
@disk_cleanup_size += disk_usage
|
||||
else
|
||||
puts "Removing: #{path}... (#{path.abv})"
|
||||
yield
|
||||
@disk_cleanup_size += disk_usage - path.disk_usage
|
||||
end
|
||||
|
||||
@disk_cleanup_size += disk_usage
|
||||
end
|
||||
|
||||
def cleanup_lockfiles(*lockfiles)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user