aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJude Taylor <jude.taylor@dfinity.org>2020-05-04 14:42:06 -0700
committerJude Taylor <jude.taylor@dfinity.org>2020-05-04 14:42:06 -0700
commite2fc575c6122b40f5d660ae04f269e118354c101 (patch)
treed004863ea0d5cccbc8c46882510e1b685416febd /src
parenta721a0b1140bf489d645f5d85737acafc1c57c65 (diff)
nix auto-gc: use fragment size
Diffstat (limited to 'src')
-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 6bab1e37c..d210defe5 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -889,7 +889,7 @@ void LocalStore::autoGC(bool sync)
if (statvfs(realStoreDir.c_str(), &st))
throw SysError("getting filesystem info about '%s'", realStoreDir);
- return (uint64_t) st.f_bavail * st.f_bsize;
+ return (uint64_t) st.f_bavail * st.f_frsize;
};
std::shared_future<void> future;