mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
* Don't use ULLONG_MAX in maxFreed - use 0 to mean "no limit".
18446744073709551615ULL breaks on GCC 3.3.6 (`integer constant is too large for "long" type').
This commit is contained in:
parent
92f525ecf4
commit
5dd8fb2069
4 changed files with 8 additions and 10 deletions
|
@ -482,7 +482,7 @@ void LocalStore::gcPath(const GCOptions & options, GCResults & results,
|
|||
results.bytesFreed += bytesFreed;
|
||||
results.blocksFreed += blocksFreed;
|
||||
|
||||
if (results.bytesFreed > options.maxFreed) {
|
||||
if (options.maxFreed && results.bytesFreed > options.maxFreed) {
|
||||
printMsg(lvlInfo, format("deleted more than %1% bytes; stopping") % options.maxFreed);
|
||||
throw GCLimitReached();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue