Skip to content

Commit

Permalink
Merge pull request #3562 from pikajude/master
Browse files Browse the repository at this point in the history
Use fragment size for autoGC capacity calculation
  • Loading branch information
edolstra committed May 6, 2020
2 parents fd49112 + e2fc575 commit 02c5914
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 02c5914

Please sign in to comment.