mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Removed 0 from frontend tables
This commit is contained in:
parent
0b1e0341d7
commit
09885ec161
3 changed files with 7 additions and 2 deletions
|
|
@ -25,6 +25,9 @@ function network_utils.network2record(ifId, network)
|
|||
local network_link = "<A HREF='"..ntop.getHttpPrefix()..'/lua/hosts_stats.lua?network='..network["network_id"].."' title='"..network["network_key"].."'>"..getFullLocalNetworkName(network["network_key"])..'</A>'
|
||||
record["column_id"] = network_link
|
||||
record["column_score"] = format_utils.formatValue(network["score"] or 0)
|
||||
if record["column_score"] == '0' then
|
||||
record["column_score"] = ''
|
||||
end
|
||||
record["column_hosts"] = (network["num_hosts"] or 0)..""
|
||||
|
||||
local sent2rcvd = round((network["bytes.sent"] * 100) / (network["bytes.sent"] + network["bytes.rcvd"]), 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue