mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Fixes missing formatting in tables
This commit is contained in:
parent
760b5a2c52
commit
4b9938be9a
5 changed files with 23 additions and 15 deletions
|
|
@ -31,7 +31,7 @@ function os_data_utils.os2record(ifId, os)
|
|||
if((os["num_alerts"] ~= nil) and (os["num_alerts"] > 0)) then
|
||||
record["column_alerts"] = "<font color=#B94A48>"..formatValue(value["num_alerts"]).."</font>"
|
||||
else
|
||||
record["column_alerts"] = "0"
|
||||
record["column_alerts"] = ""
|
||||
end
|
||||
|
||||
record["column_chart"] = ""
|
||||
|
|
@ -40,7 +40,7 @@ function os_data_utils.os2record(ifId, os)
|
|||
record["column_chart"] = '<A HREF="'..ntop.getHttpPrefix()..'/lua/os_details.lua?os='..os["os"]..'&page=historical"><i class=\'fas fa-chart-area fa-lg\'></i></A>'
|
||||
end
|
||||
|
||||
record["column_hosts"] = os["num_hosts"]..""
|
||||
record["column_hosts"] = format_high_num_value_for_tables(os, "num_hosts")
|
||||
record["column_since"] = secondsToTime(now - os["seen.first"] + 1)
|
||||
|
||||
local sent2rcvd = round((os["bytes.sent"] * 100) / (os["bytes.sent"] + os["bytes.rcvd"]), 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue