diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-14 12:11:37 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-14 12:11:37 +0000 |
commit | 716102f68ffd68c60212eeeaf6f2a6b9601bdd57 (patch) | |
tree | 849c0dff3d2afa183d3460abed98a3fadd4df03a /interface/js/rspamd.js | |
parent | a57f46c1407e2091357f859299aa8e5e7c0a3e2e (diff) | |
download | rspamd-716102f68ffd68c60212eeeaf6f2a6b9601bdd57.tar.gz rspamd-716102f68ffd68c60212eeeaf6f2a6b9601bdd57.zip |
[WebUI] Fix soft reject in pie chart
Diffstat (limited to 'interface/js/rspamd.js')
-rw-r--r-- | interface/js/rspamd.js | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index def4718ae..cef69604f 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -476,6 +476,7 @@ probable: 0, greylist: 0, reject: 0, + soft_reject: 0, scanned: 0, learned: 0, read_only: neighbours_status[0].data.read_only, @@ -488,6 +489,7 @@ neighbours_sum.probable += neighbours_status[e].data.probable; neighbours_sum.greylist += neighbours_status[e].data.greylist; neighbours_sum.reject += neighbours_status[e].data.reject; + neighbours_sum.soft_reject += neighbours_status[e].data.soft_reject; neighbours_sum.scanned += neighbours_status[e].data.scanned; neighbours_sum.learned += neighbours_status[e].data.learned; neighbours_sum.uptime += neighbours_status[e].data.uptime; @@ -546,22 +548,6 @@ $('#modalBody form').hide(); }); -// function getChart() { -// $.ajax({ -// dataType: 'json', -// type: 'GET', -// url: 'pie', -// jsonp: false, -// beforeSend: function (xhr) { -// xhr.setRequestHeader('Password', getPassword()); -// }, -// success: function (data) { -// console.log(data); -// pie = drawPie(pie, "chart", data); -// } -// }); -// } - function getChart() { var creds = JSON.parse(sessionStorage.getItem('Credentials')); if (creds && creds[checked_server]) { |