aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2013-01-18 14:08:13 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2013-01-18 14:08:13 +0400
commitb038cea33d7afed6612b6326b09421867f2f26d4 (patch)
treea51dc899207d0c4835c2da2f8edff8d4df5b3287
parentc93fecc487a463a3eb4909fb0fc01bf18ab7018d (diff)
downloadrspamd-b038cea33d7afed6612b6326b09421867f2f26d4.tar.gz
rspamd-b038cea33d7afed6612b6326b09421867f2f26d4.zip
Pie format update.
-rw-r--r--src/webui.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/webui.c b/src/webui.c
index 6a5765d3d..52b33ffaa 100644
--- a/src/webui.c
+++ b/src/webui.c
@@ -1171,13 +1171,13 @@ http_handle_pie_chart (struct evhttp_request *req, gpointer arg)
data[2] = ctx->srv->stat->actions_stat[METRIC_ACTION_GREYLIST] / total * 100.;
data[3] = ctx->srv->stat->actions_stat[METRIC_ACTION_REJECT] / total * 100.;
- evbuffer_add_printf (evb, "[{\"Clean messages\":%.2f},", data[0]);
- evbuffer_add_printf (evb, "{\"Probable spam messages\":%.2f},", data[1]);
- evbuffer_add_printf (evb, "{\"Greylisted messages\":%.2f},", data[2]);
- evbuffer_add_printf (evb, "{\"Rejected messages\":%.2f}]" CRLF, data[3]);
+ evbuffer_add_printf (evb, "[[\"Clean messages\",%.2f],", data[0]);
+ evbuffer_add_printf (evb, "[\"Probable spam messages\",%.2f],", data[1]);
+ evbuffer_add_printf (evb, "[\"Greylisted messages\",%.2f],", data[2]);
+ evbuffer_add_printf (evb, "[\"Rejected messages\",%.2f]]" CRLF, data[3]);
}
else {
- evbuffer_add_printf (evb, "[{\"Not scanned messages\": 0}]" CRLF);
+ evbuffer_add_printf (evb, "[[\"Not scanned messages\", 0]]" CRLF);
}