mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Added the ability to display the number of flows per host in the host list
DHCP/Mac address optimizations
This commit is contained in:
parent
e8cffe9227
commit
d9af0c8025
9 changed files with 59 additions and 18 deletions
|
|
@ -112,11 +112,20 @@ else
|
|||
else
|
||||
print ("\"column_thpt\" : \"0 "..throughput_type.."\",")
|
||||
end
|
||||
|
||||
print ("\"column_num_flows\" : \""..host["active_flows.as_client"]+host["active_flows.as_server"].."\",")
|
||||
print ("\"column_alerts\" : \"")
|
||||
if((host["num_alerts"] ~= nil) and (host["num_alerts"] > 0)) then
|
||||
print(""..host["num_alerts"].."\",")
|
||||
else
|
||||
print("0\",")
|
||||
end
|
||||
|
||||
sent2rcvd = round((host["bytes.sent"] * 100) / (host["bytes.sent"]+host["bytes.rcvd"]), 0)
|
||||
print ("\"column_breakdown\" : \"<div class='progress'><div class='progress-bar progress-bar-warning' style='width: "
|
||||
.. sent2rcvd .."%;'>Sent</div><div class='progress-bar progress-bar-info' style='width: " .. (100-sent2rcvd) .. "%;'>Rcvd</div></div>")
|
||||
|
||||
|
||||
print("\" } ")
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue