Added ntop cloud menu icon

This commit is contained in:
Luca Deri 2024-04-09 21:17:54 +02:00
parent 91db92488a
commit dddcc1b771
2 changed files with 16 additions and 4 deletions

View file

@ -345,10 +345,15 @@ function dumpBriefInterfaceStats(ifid)
res["localtime"] = os.date("%H:%M:%S %z", res["epoch"])
res["uptime"] = secondsToTime(uptime)
if ntop.isPro() then
local product_info = ntop.getInfo(true)
local product_info = ntop.getInfo(true)
if product_info["pro.out_of_maintenance"] then
res["out_of_maintenance"] = true
end
if(product_info.ntopcloud) then
res["ntopcloud"] = true
end
end
res["hosts_pctg"] = hosts_pctg