diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-12-15 21:11:39 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-12-15 21:11:39 +0000 |
commit | 530b27df1e71852580d8b0d474543aeffe65618f (patch) | |
tree | 166f79c170b19ad82ca6bf9a3c77b96325b72aa1 /src/libstore/gc.hh | |
parent | 5144f750c471cdb629750e96ddc913fb01fb9eef (diff) |
* `nix-store --gc' prints out the number of bytes freed on stdout
(even when it is interrupted by a signal).
Diffstat (limited to 'src/libstore/gc.hh')
-rw-r--r-- | src/libstore/gc.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/gc.hh b/src/libstore/gc.hh index b6a367c4b..eb1858729 100644 --- a/src/libstore/gc.hh +++ b/src/libstore/gc.hh @@ -19,7 +19,8 @@ typedef enum { closure of) the roots. If `action' is `gcReturnDead', return the set of paths not reachable from the roots. If `action' is `gcDeleteDead', actually delete the latter set. */ -void collectGarbage(GCAction action, PathSet & result); +void collectGarbage(GCAction action, PathSet & result, + unsigned long long & bytesFreed); /* Register a temporary GC root. This root will automatically disappear when this process exits. WARNING: this function should |