summaryrefslogtreecommitdiff
path: root/nix/libstore/gc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'nix/libstore/gc.cc')
-rw-r--r--nix/libstore/gc.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/nix/libstore/gc.cc b/nix/libstore/gc.cc
index 1766a684122..08638b51153 100644
--- a/nix/libstore/gc.cc
+++ b/nix/libstore/gc.cc
@@ -433,8 +433,7 @@ void LocalStore::deletePathRecursive(GCState & state, const Path & path)
433 printMsg(lvlInfo, format("[%1%%%] deleting '%2%'") % percentage % path); 433 printMsg(lvlInfo, format("[%1%%%] deleting '%2%'") % percentage % path);
434 } else { 434 } else {
435 auto freed = state.results.bytesFreed + state.bytesInvalidated; 435 auto freed = state.results.bytesFreed + state.bytesInvalidated;
436 freed /= 1024ULL * 1024ULL; 436 printMsg(lvlInfo, format("[%1%] deleting '%2%'") % showBytes(freed) % path);
437 printMsg(lvlInfo, format("[%1% MiB] deleting '%2%'") % freed % path);
438 } 437 }
439 438
440 state.results.paths.insert(path); 439 state.results.paths.insert(path);
@@ -629,9 +628,9 @@ void LocalStore::removeUnusedLinks(const GCState & state)
629 if (stat(linksDir.c_str(), &st) == -1) 628 if (stat(linksDir.c_str(), &st) == -1)
630 throw SysError(format("statting `%1%'") % linksDir); 629 throw SysError(format("statting `%1%'") % linksDir);
631 long long overhead = st.st_size; 630 long long overhead = st.st_size;
631 long long freedbytes = (unsharedSize - actualSize - overhead);
632 632
633 printMsg(lvlInfo, format("note: currently hard linking saves %.2f MiB") 633 printMsg(lvlInfo, format("note: currently hard linking saves %1%") % showBytes(freedbytes));
634 % ((unsharedSize - actualSize - overhead) / (1024.0 * 1024.0)));
635} 634}
636 635
637 636