aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamd.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-08 13:23:49 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-08 13:23:49 +0100
commitd968214c74bb120c742955b506283a6938869605 (patch)
treed45b018fc2f7ff0f3d97debff7f6d12f84e69788 /src/rspamd.c
parentb2d023cc7731614aca19f46f653614a7ece7f3a3 (diff)
downloadrspamd-d968214c74bb120c742955b506283a6938869605.tar.gz
rspamd-d968214c74bb120c742955b506283a6938869605.zip
[Fix] Use real size instead of displayed for core limits
Diffstat (limited to 'src/rspamd.c')
-rw-r--r--src/rspamd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rspamd.c b/src/rspamd.c
index eb2f37ecb..f12a3b5e1 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -714,7 +714,8 @@ rspamd_check_core_cb (const gchar *path, const struct stat *st,
{
if (S_ISREG (st->st_mode)) {
cores_cbdata.total_count ++;
- cores_cbdata.total_size += st->st_size;
+ /* Use physical size instead of displayed one */
+ cores_cbdata.total_size += st->st_blocks * 512;
}
return 0;