diff options
author | Jude Taylor <jude.taylor@dfinity.org> | 2020-05-04 14:42:06 -0700 |
---|---|---|
committer | Jude Taylor <jude.taylor@dfinity.org> | 2020-05-04 14:42:06 -0700 |
commit | e2fc575c6122b40f5d660ae04f269e118354c101 (patch) | |
tree | d004863ea0d5cccbc8c46882510e1b685416febd /src/libstore/gc.cc | |
parent | a721a0b1140bf489d645f5d85737acafc1c57c65 (diff) |
nix auto-gc: use fragment size
Diffstat (limited to 'src/libstore/gc.cc')
-rw-r--r-- | src/libstore/gc.cc | 2 |
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; |