Merge pull request #3562 from pikajude/master

Use fragment size for autoGC capacity calculation
This commit is contained in:
Eelco Dolstra 2020-05-06 11:19:30 +02:00 committed by GitHub
commit 02c5914ea4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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