mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixes throughput when opening the page
This commit is contained in:
parent
4a6b6ec676
commit
10ee392a3e
1 changed files with 2 additions and 2 deletions
|
|
@ -562,13 +562,13 @@ if (page == "flows" or page == nil) then
|
|||
pushNewValue(uploadChart, throughput_bps_sent);
|
||||
$('#download-filter-traffic-value').html(NtopUtils.bitsToSize(throughput_bps_rcvd, 1000));
|
||||
$('#upload-filter-traffic-value').html(NtopUtils.bitsToSize(throughput_bps_sent, 1000));
|
||||
}
|
||||
$('#filtered-flows-tot-throughput-value').html(NtopUtils.bitsToSize(tot_throughput, 1000));
|
||||
}
|
||||
|
||||
/* Keep the old value for computing the differnce at the next round */
|
||||
old_totBytesSent = data.rsp.totBytesSent || 0;
|
||||
old_totBytesRcvd = data.rsp.totBytesRcvd || 0;
|
||||
$('#filtered-flows-tot-bytes-value').html(NtopUtils.bytesToSize(old_totBytesSent + old_totBytesRcvd));
|
||||
$('#filtered-flows-tot-throughput-value').html(NtopUtils.bitsToSize(tot_throughput, 1000));
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue