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