diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-08 13:23:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-08 13:23:49 +0100 |
commit | d968214c74bb120c742955b506283a6938869605 (patch) | |
tree | d45b018fc2f7ff0f3d97debff7f6d12f84e69788 /src/rspamd.c | |
parent | b2d023cc7731614aca19f46f653614a7ece7f3a3 (diff) | |
download | rspamd-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.c | 3 |
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; |