summaryrefslogtreecommitdiffstats
path: root/src/journal/journal-file.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-03-15 02:59:10 +0100
committerLennart Poettering <lennart@poettering.net>2012-03-15 03:01:09 +0100
commita3a52c0fd0c2597bf8233730c3ed3408affe0c9f (patch)
treeb6ec0d37e4fbf064b3430824aeed87d24cb14e5d /src/journal/journal-file.c
parentjournald: copy metrics/compression state from template when rotating (diff)
downloadsystemd-a3a52c0fd0c2597bf8233730c3ed3408affe0c9f.tar.xz
systemd-a3a52c0fd0c2597bf8233730c3ed3408affe0c9f.zip
journald: fix calculation of disk space
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r--src/journal/journal-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index a784a3391b..41430f310d 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -2068,7 +2068,7 @@ int journal_directory_vacuum(const char *directory, uint64_t max_use, uint64_t m
}
list[n_list].filename = p;
- list[n_list].usage = (uint64_t) st.st_blksize * (uint64_t) st.st_blocks;
+ list[n_list].usage = 512UL * (uint64_t) st.st_blocks;
list[n_list].seqnum = seqnum;
list[n_list].realtime = realtime;
list[n_list].seqnum_id = seqnum_id;