Added score stats to VLAN/Country/AS/Network

This commit is contained in:
Matteo Biscosi 2021-05-13 11:09:07 +02:00
parent b7f12727e2
commit 4d5cd3b3af
18 changed files with 72 additions and 5 deletions

View file

@ -13,6 +13,7 @@ function country2record(ifId, country)
record["column_id"] = getFlag(country["country"]).."&nbsp&nbsp" .. country_link
record["column_hosts"] = country["num_hosts"]..""
record["column_score"] = country["score"]
record["column_since"] = secondsToTime(now - country["seen.first"] + 1)
local sent2rcvd = round((country["egress"] * 100) / (country["egress"] + country["ingress"]), 0)