mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added num alerted flows in Networks (#6465)
This commit is contained in:
parent
7d9f9b9efc
commit
fb6d7e1655
7 changed files with 54 additions and 16 deletions
|
|
@ -48,6 +48,11 @@ function network_utils.network2record(ifId, network)
|
|||
record["column_chart"] = '<A HREF="'..ntop.getHttpPrefix()..'/lua/network_details.lua?network='..network["network_id"]..'&page=historical"><i class=\'fas fa-chart-area fa-lg\'></i></A>'
|
||||
end
|
||||
|
||||
record["column_alerted_flows"] = format_utils.formatValue(network["alerted_flows"]["total"] or 0)
|
||||
if record["column_alerted_flows"] == 0 then
|
||||
record["column_alerted_flows"] = ''
|
||||
end
|
||||
|
||||
return record
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue