diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-04-03 17:54:27 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-04-03 17:54:27 +0300 |
commit | 72eb849b21f5151295d730d3450eb95e845f15dd (patch) | |
tree | c717353f03efedc795f4fc67b7b647b8d187b856 /interface/js/app/graph.js | |
parent | 03a9433dd9cf35fc48c19f3dba7bda1a7aaadfeb (diff) | |
download | rspamd-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.js | 4 |
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 |