diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index 6bab1e37c902c7ace6da40b8f962f23b2f434156..d210defe57eb4b4dfdf7c00113ec50c2ba533d5f 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;