parent
95295482ea
commit
105f8ffc98
3 changed files with 5 additions and 15 deletions
|
@ -679,7 +679,7 @@ void LocalStore::removeUnusedLinks(const GCState & state)
|
|||
if (unlink(path.c_str()) == -1)
|
||||
throw SysError(format("deleting ‘%1%’") % path);
|
||||
|
||||
state.results.bytesFreed += st.st_blocks * 512;
|
||||
state.results.bytesFreed += st.st_blocks * 512ULL;
|
||||
}
|
||||
|
||||
struct stat st;
|
||||
|
|
|
@ -26,14 +26,9 @@ struct Derivation;
|
|||
|
||||
struct OptimiseStats
|
||||
{
|
||||
unsigned long filesLinked;
|
||||
unsigned long long bytesFreed;
|
||||
unsigned long long blocksFreed;
|
||||
OptimiseStats()
|
||||
{
|
||||
filesLinked = 0;
|
||||
bytesFreed = blocksFreed = 0;
|
||||
}
|
||||
unsigned long filesLinked = 0;
|
||||
unsigned long long bytesFreed = 0;
|
||||
unsigned long long blocksFreed = 0;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -81,12 +81,7 @@ struct GCResults
|
|||
|
||||
/* For `gcReturnDead', `gcDeleteDead' and `gcDeleteSpecific', the
|
||||
number of bytes that would be or was freed. */
|
||||
unsigned long long bytesFreed;
|
||||
|
||||
GCResults()
|
||||
{
|
||||
bytesFreed = 0;
|
||||
}
|
||||
unsigned long long bytesFreed = 0;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue