mirror of
https://github.com/NixOS/nix.git
synced 2025-11-17 16:02:43 +01:00
* Some refactoring: put the GC options / results in separate structs.
* The garbage collector now also prints the number of blocks freed.
This commit is contained in:
parent
934c58aa38
commit
a72709afd8
15 changed files with 252 additions and 166 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue