From 15876ec4a0ca60991292dbead7e6f57d1d1b70cc Mon Sep 17 00:00:00 2001 From: Jude Taylor Date: Mon, 4 May 2020 14:42:06 -0700 Subject: [PATCH] nix auto-gc: use fragment size (cherry picked from commit e2fc575c6122b40f5d660ae04f269e118354c101) --- src/libstore/gc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index a166f4ee2..f9727c8c9 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -876,7 +876,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 future;