aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-10-13 18:02:32 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-10-13 18:02:32 +0000
commit13804f126e62b308c8f748133114d05e315ba15b (patch)
tree93b3b089fb49511c9086fcb06fa14f46281ac6d6 /src
parent1b8ebe92dc9c7d7db5d7001a84e85c5603056823 (diff)
parent2653801939af1dcef1fddfca4df8eded58bc4bf3 (diff)
Merge remote-tracking branch 'upstream/master' into typed-goal-maps
Diffstat (limited to 'src')
-rw-r--r--src/libstore/gc.cc2
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)));