diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-18 14:08:13 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-18 14:08:13 +0400 |
commit | b038cea33d7afed6612b6326b09421867f2f26d4 (patch) | |
tree | a51dc899207d0c4835c2da2f8edff8d4df5b3287 | |
parent | c93fecc487a463a3eb4909fb0fc01bf18ab7018d (diff) | |
download | rspamd-b038cea33d7afed6612b6326b09421867f2f26d4.tar.gz rspamd-b038cea33d7afed6612b6326b09421867f2f26d4.zip |
Pie format update.
-rw-r--r-- | src/webui.c | 10 |
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); } |