mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Fixes missing speed in header for ZMQ/mirror interfaces
This commit is contained in:
parent
8865cacb98
commit
6f8fff70bc
1 changed files with 2 additions and 3 deletions
|
|
@ -178,8 +178,7 @@ var footerRefresh = function() {
|
|||
if (interface.isPcapDumpInterface() == false) and (not have_nedge) then
|
||||
print[[
|
||||
|
||||
var v = Math.round(Math.min((bps*100)/]] print(maxSpeed) print[[, 100));
|
||||
//$('#networkload').css("width", v+"%")
|
||||
var v = Math.round(Math.min((bps*100)/]] print(string.format("%u", maxSpeed)) print[[, 100));
|
||||
$('#networkload').html(v+"%");
|
||||
]]
|
||||
end
|
||||
|
|
@ -187,7 +186,7 @@ end
|
|||
print[[
|
||||
$('#chart-upload-text').html(""+bitsToSize(bps_upload, 1000));
|
||||
$('#chart-download-text').html(""+bitsToSize(bps_download, 1000));
|
||||
//$('#chart-total-text').html(""+bitsToSize(Math.min(bps, ]] print(maxSpeed) print[[), 1000));
|
||||
$('#chart-total-text').html(""+bitsToSize(bps_upload + bps_download, 1000));
|
||||
]]
|
||||
|
||||
-- system_view_enabled is defined inside menu.lua
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue