summaryrefslogtreecommitdiffstats
path: root/src/rspamd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rspamd.c')
-rw-r--r--src/rspamd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rspamd.c b/src/rspamd.c
index 8f33ccc48..d1eaa205d 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -1127,7 +1127,7 @@ rspamd_stat_update_handler (struct ev_loop *loop, ev_timer *w, int revents)
rate,
(new_spam - old_spam) / w->repeat,
(new_ham - old_ham) / w->repeat,
- cnt > 0 ? sum : 0);
+ cnt > 0 ? sum / cnt : 0);
setproctitle (proctitle);
}