1
0
Fork 0
forked from lix-project/lix

nix auto-gc: use fragment size

This commit is contained in:
Jude Taylor 2020-05-04 14:42:06 -07:00
parent a721a0b114
commit e2fc575c61

View file

@ -889,7 +889,7 @@ void LocalStore::autoGC(bool sync)
if (statvfs(realStoreDir.c_str(), &st)) if (statvfs(realStoreDir.c_str(), &st))
throw SysError("getting filesystem info about '%s'", realStoreDir); 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; std::shared_future<void> future;