mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Extend infrastructure dashboard with mode widgets
This commit is contained in:
parent
fc711ab870
commit
7cf35fbd78
6 changed files with 155 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue