Browse Source

Fix piechart clean slice.

Issue: #380
tags/1.0.3
Vsevolod Stakhov 8 years ago
parent
commit
aea4474a10
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      src/controller.c

+ 2
- 4
src/controller.c View 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];

Loading…
Cancel
Save