aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-13 14:47:58 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-13 14:47:58 +0000
commitbd17c787ed89290c361234e88aaf9f270d22c99e (patch)
tree78a2f067b5320944795d630b69f3824a061e30d1 /interface/js
parent8300780dfc4c1dd49dc9e593c585bc9210cca7ed (diff)
downloadrspamd-bd17c787ed89290c361234e88aaf9f270d22c99e.tar.gz
rspamd-bd17c787ed89290c361234e88aaf9f270d22c99e.zip
[WebUI] Fix pie chart displaying
Diffstat (limited to 'interface/js')
-rw-r--r--interface/js/rspamd.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js
index fca33020d..def4718ae 100644
--- a/interface/js/rspamd.js
+++ b/interface/js/rspamd.js
@@ -508,6 +508,7 @@
});
sessionStorage.setItem("Credentials", JSON.stringify(to_Credentials));
displayStatWidgets();
+ getChart();
},
function (serv, jqXHR, textStatus, errorThrown) {
alertMessage('alert-error', 'Cannot receive stats data from: ' +
@@ -573,8 +574,8 @@
}, {
"color" : "#cc9966",
"label" : "Temporary rejected",
- "data" : data.learned,
- "value" : data.learned
+ "data" : data.soft_reject,
+ "value" : data.soft_reject
}, {
"color" : "#FFD700",
"label" : "Probable spam",
@@ -588,8 +589,8 @@
}, {
"color" : "#FF0000",
"label" : "Rejected",
- "data" : data.rejected,
- "value" : data.rejected
+ "data" : data.reject,
+ "value" : data.reject
} ];
pie = drawPie(pie, "chart", new_data);
}