From: Vsevolod Stakhov Date: Sun, 27 Feb 2022 09:49:27 +0000 (+0000) Subject: [Minor] Add missing division X-Git-Tag: 3.2~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ddf1aaca978c045a14f82e5f7dcd3d8ca083afb;p=thirdparty%2Frspamd.git [Minor] Add missing division Pointed by: @moisseev --- diff --git a/src/rspamd.c b/src/rspamd.c index 8f33ccc485..d1eaa205d2 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); }