]> source.dussan.org Git - rspamd.git/commitdiff
Fix piechart clean slice.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Sep 2015 18:31:11 +0000 (19:31 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Sep 2015 18:31:11 +0000 (19:31 +0100)
Issue: #380

src/controller.c

index 7005965719087be016947403b41cbb2f8c9b43ea..f21e3c51a01ffca5f8be320fd9c145552db1aa58 100644 (file)
@@ -913,10 +913,8 @@ rspamd_controller_handle_pie_chart (
        total = ctx->srv->stat->messages_scanned;
        if (total != 0) {
 
-               data[0] = ctx->srv->stat->actions_stat[METRIC_ACTION_NOACTION] / total *
-                       100.;
-               data[1] = ctx->srv->stat->actions_stat[METRIC_ACTION_SOFT_REJECT] / total *
-                       100.;
+               data[0] = ctx->srv->stat->actions_stat[METRIC_ACTION_NOACTION];
+               data[1] = ctx->srv->stat->actions_stat[METRIC_ACTION_SOFT_REJECT];
                data[2] = (ctx->srv->stat->actions_stat[METRIC_ACTION_ADD_HEADER] +
                        ctx->srv->stat->actions_stat[METRIC_ACTION_REWRITE_SUBJECT]);
                data[3] = ctx->srv->stat->actions_stat[METRIC_ACTION_GREYLIST];