diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-23 19:31:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-23 19:31:11 +0100 |
commit | aea4474a10cafb54da4c5d5c1b508ec7adb239ef (patch) | |
tree | 3cc7f9f02b0d7dcae581bee80bf240e394a74c59 | |
parent | 9f433cc70a7812af66cc2092ef65907e6c6f0341 (diff) | |
download | rspamd-aea4474a10cafb54da4c5d5c1b508ec7adb239ef.tar.gz rspamd-aea4474a10cafb54da4c5d5c1b508ec7adb239ef.zip |
Fix piechart clean slice.
Issue: #380
-rw-r--r-- | src/controller.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/controller.c b/src/controller.c index 700596571..f21e3c51a 100644 --- a/src/controller.c +++ b/src/controller.c @@ -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]; |