mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Network discovery:
- Removed redundancies between C and Lua - Discovery is now enabled at interface creation (if supported by the device).
This commit is contained in:
parent
50f2c97fc6
commit
c74abf4eb0
13 changed files with 98 additions and 106 deletions
|
|
@ -45,11 +45,11 @@ function mac2record(mac)
|
|||
record["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>"
|
||||
|
||||
if(throughput_type == "pps") then
|
||||
record["column_thpt"] = pktsToSize(mac["throughput_pps"])
|
||||
else
|
||||
record["column_thpt"] = bitsToSize(8*mac["throughput_bps"])
|
||||
end
|
||||
-- if(throughput_type == "pps") then
|
||||
-- record["column_thpt"] = pktsToSize(mac["throughput_pps"])
|
||||
-- else
|
||||
-- record["column_thpt"] = bitsToSize(8*mac["throughput_bps"])
|
||||
-- end
|
||||
|
||||
record["column_traffic"] = bytesToSize(mac["bytes.sent"] + mac["bytes.rcvd"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue