about summary refs log tree commit diff
path: root/src/libstore/gc.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2009-03-26T11·02+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2009-03-26T11·02+0000
commit5dd8fb20691c375778fd73bf613d4988df72fb50 (patch)
tree942d57bc30560be4675190ba0507b813a95a5b10 /src/libstore/gc.cc
parent92f525ecf4ea8a9bd356acd1d3845074b1e5b918 (diff)
* 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').

Diffstat (limited to 'src/libstore/gc.cc')
-rw-r--r--src/libstore/gc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index 552016584af1..b5cc21de44ac 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -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();
     }