Fixes AS stats in the GUI

This commit is contained in:
Simone Mainardi 2017-04-20 11:56:33 +02:00
parent a63eeadbb1
commit a43636bdb0
6 changed files with 119 additions and 19 deletions

View file

@ -7,7 +7,7 @@ local now = os.time()
function as2record(as)
local record = {}
record["key"] = as["asn"]
record["key"] = tostring(as["asn"])
local as_link = "<A HREF='"..ntop.getHttpPrefix()..'/lua/hosts_stats.lua?asn='..as["asn"].."' title='"..as["asname"].."'>"..as["asn"]..'</A>'
record["column_asn"] = as_link