aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamd.c
diff options
context:
space:
mode:
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;