diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-10-13 11:06:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 11:06:29 +0200 |
commit | 7e44adda46ddfa9c06f9d8a7c64a91bf006cedb9 (patch) | |
tree | 4b503611735abc865a17799c4676ab25bbbadbb8 | |
parent | 20d2140e450b066a521933dd322d089fd6c248fa (diff) | |
parent | eee18f88dd83be2810cd7090738e5949745dbefa (diff) |
Merge pull request #4141 from volth/patch-11
Handle amount of disk space saved by hard linking being negative
-rw-r--r-- | src/libstore/gc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index 7a04b2f89..bc692ca42 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -683,7 +683,7 @@ void LocalStore::removeUnusedLinks(const GCState & state) struct stat st; if (stat(linksDir.c_str(), &st) == -1) throw SysError("statting '%1%'", linksDir); - auto overhead = st.st_blocks * 512ULL; + int64_t overhead = st.st_blocks * 512ULL; printInfo("note: currently hard linking saves %.2f MiB", ((unsharedSize - actualSize - overhead) / (1024.0 * 1024.0))); |