]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add missing division
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 27 Feb 2022 09:49:27 +0000 (09:49 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 27 Feb 2022 09:49:49 +0000 (09:49 +0000)
Pointed by: @moisseev

src/rspamd.c

index 8f33ccc48521a2bed8dcb0cdd016197cff50b7ad..d1eaa205d2fba94a683f67da7d469eb69d2cdafb 100644 (file)
@@ -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);
        }