Extend infrastructure dashboard with mode widgets

This commit is contained in:
Alfredo Cardigliano 2025-02-10 18:00:24 +01:00
parent fc711ab870
commit 7cf35fbd78
6 changed files with 155 additions and 3 deletions

View file

@ -182,6 +182,7 @@ function dumpInterfaceStats(ifid)
res["epoch"] = os.time()
res["localtime"] = os.date("%H:%M:%S %z", res["epoch"])
res["uptime_sec"] = uptime
res["uptime"] = secondsToTime(uptime)
if ntop.isPro() then
local product_info = ntop.getInfo(true)
@ -382,8 +383,10 @@ function dumpBriefInterfaceStats(ifid)
res["dropped_flows"] = ifstats.zmqRecvStats_since_reset.dropped_flows
end
res["epoch"] = os.time()
res["localtime"] = os.date("%H:%M:%S %z", res["epoch"])
res["uptime"] = secondsToTime(uptime)
res["uptime_sec"] = uptime
if ntop.isPro() then
local product_info = ntop.getInfo(true)