about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-08-29T10·09+0200
committerEelco Dolstra <edolstra@gmail.com>2019-08-29T10·09+0200
commitf27e53f77e39d1247c47b48acb63af3d24ca74bf (patch)
tree3226aa3f58246225d2961794464adda20408dadc /src
parentb6120d26a84a69755c049ca5115b4388239d4540 (diff)
Cleanup
Diffstat (limited to 'src')
-rw-r--r--src/libstore/gc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index 366dbfb0a653..f736016797a2 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -920,11 +920,11 @@ void LocalStore::autoGC(bool sync)
                     promise.set_value();
                 });
 
-                printInfo("running auto-GC to free %d bytes", settings.maxFree - avail);
-
                 GCOptions options;
                 options.maxFreed = settings.maxFree - avail;
 
+                printInfo("running auto-GC to free %d bytes", options.maxFreed);
+
                 GCResults results;
 
                 collectGarbage(options, results);