aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/graph.js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-04-03 17:54:27 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-04-03 17:54:27 +0300
commit72eb849b21f5151295d730d3450eb95e845f15dd (patch)
treec717353f03efedc795f4fc67b7b647b8d187b856 /interface/js/app/graph.js
parent03a9433dd9cf35fc48c19f3dba7bda1a7aaadfeb (diff)
downloadrspamd-72eb849b21f5151295d730d3450eb95e845f15dd.tar.gz
rspamd-72eb849b21f5151295d730d3450eb95e845f15dd.zip
[WebUI] Add messages total to throughput summary
Diffstat (limited to 'interface/js/app/graph.js')
-rw-r--r--interface/js/app/graph.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/interface/js/app/graph.js b/interface/js/app/graph.js
index bc5802995..9ae6a9297 100644
--- a/interface/js/app/graph.js
+++ b/interface/js/app/graph.js
@@ -135,7 +135,9 @@ function($, D3Evolution, unused) {
}
function drawRrdTable(data, unit) {
+ var total_messages = 0;
var rows = data.map(function (curr, i) {
+ total_messages += curr.value;
return {
options: {
style: {
@@ -146,6 +148,8 @@ function($, D3Evolution, unused) {
};
}, []);
+ document.getElementById('rrd-total-value').innerHTML = total_messages;
+
$('#rrd-table').footable({
sorting: {
enabled: true