Fixes incorrect href

This commit is contained in:
MatteoBiscosi 2022-12-23 11:47:19 +01:00
parent 5ed245e509
commit a97ff92e80
5 changed files with 33 additions and 6 deletions

View file

@ -29,7 +29,7 @@ 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>'
network["host_score_ratio"] = math.floor(network["score"] / network["num_hosts"])
network["host_score_ratio"] = math.floor((network["score"] or 0) / (network["num_hosts"] or 0))
record["column_id"] = network_link
record["column_score"] = format_high_num_value_for_tables(network, "score")