mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
nix auto-gc: use fragment size
This commit is contained in:
parent
a721a0b114
commit
e2fc575c61
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user