summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-07-01 23:11:47 +0200
committerTom Gundersen <teg@jklm.no>2014-07-01 23:49:56 +0200
commitcd4ba18a849dc82735b3787cf99bd3fdc404d5ae (patch)
tree7a32f93e6c72158239b4204bc1b2579ede301fb4 /src
parent926695f1b5f9395eeb416cc2f478a9cf75fdbeb4 (diff)
coredump: vacuum - fix calculation of 10% of fs size for MaxUse
Diffstat (limited to 'src')
-rw-r--r--src/journal/coredump-vacuum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/coredump-vacuum.c b/src/journal/coredump-vacuum.c
index ad2e2fa7f4..125bb3a4b8 100644
--- a/src/journal/coredump-vacuum.c
+++ b/src/journal/coredump-vacuum.c
@@ -104,8 +104,8 @@ static bool vacuum_necessary(int fd, off_t sum, off_t keep_free, off_t max_use)
if (max_use < DEFAULT_MAX_USE_LOWER)
max_use = DEFAULT_MAX_USE_LOWER;
}
-
- max_use = DEFAULT_MAX_USE_LOWER;
+ else
+ max_use = DEFAULT_MAX_USE_LOWER;
} else
max_use = PAGE_ALIGN(max_use);