diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-06-18 09:34:17 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-06-18 09:34:17 +0000 |
commit | a72709afd8ffe35613a6bacd698a36395e095a48 (patch) | |
tree | 2f549bafbed92a53bd6faea1da43667307af7593 /src/libstore/optimise-store.cc | |
parent | 934c58aa381f5eacc86304ba7f5c6775ff456cd5 (diff) |
* Some refactoring: put the GC options / results in separate structs.
* The garbage collector now also prints the number of blocks freed.
Diffstat (limited to 'src/libstore/optimise-store.cc')
-rw-r--r-- | src/libstore/optimise-store.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/optimise-store.cc b/src/libstore/optimise-store.cc index c260f253e..bd76a1aec 100644 --- a/src/libstore/optimise-store.cc +++ b/src/libstore/optimise-store.cc @@ -101,6 +101,7 @@ static void hashAndLink(bool dryRun, HashToPath & hashToPath, stats.filesLinked++; stats.bytesFreed += st.st_size; + stats.blocksFreed += st.st_blocks; } if (S_ISDIR(st.st_mode)) { |