aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-08-29 16:11:38 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-08-29 16:11:38 +0200
commitebc4dae51761cb54c1db28cf4d328d3f2f55b758 (patch)
treed26b66aefee3e1fe5d798e178ab0b577e2dfe088 /src/libutil/util.cc
parent662db921e2f5bebeb0fd455aa744708468df8bfa (diff)
parent84de8210040580ce7189332b43038d52c56a9689 (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index e353290d0..98a7ea397 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -397,7 +397,7 @@ static void _deletePath(const Path & path, unsigned long long & bytesFreed)
}
if (!S_ISDIR(st.st_mode) && st.st_nlink == 1)
- bytesFreed += st.st_blocks * 512;
+ bytesFreed += st.st_size;
if (S_ISDIR(st.st_mode)) {
/* Make the directory accessible. */