1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 06:53:54 +02:00

nix auto-gc: use fragment size

(cherry picked from commit e2fc575c61)
This commit is contained in:
Jude Taylor 2020-05-04 14:42:06 -07:00 committed by Bas van Dijk
parent 8397c94081
commit 15876ec4a0

View file

@ -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<void> future;