Skip to content

Commit

Permalink
nix auto-gc: use fragment size
Browse files Browse the repository at this point in the history
  • Loading branch information
Jude Taylor committed May 4, 2020
1 parent a721a0b commit e2fc575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstore/gc.cc
Expand Up @@ -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;
Expand Down

0 comments on commit e2fc575

Please sign in to comment.