mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Refactors system stats in a module system_utils.lua
This commit is contained in:
parent
b194643a18
commit
ef06f9e1d3
5 changed files with 35 additions and 4 deletions
|
|
@ -11,6 +11,7 @@ local json = require("dkjson")
|
|||
local ts_utils = require("ts_utils_core")
|
||||
local plugins_utils = require("plugins_utils")
|
||||
local periodic_activities_utils = require "periodic_activities_utils"
|
||||
local system_utils = require("system_utils")
|
||||
|
||||
sendHTTPHeader('application/json')
|
||||
|
||||
|
|
@ -118,7 +119,7 @@ function dumpInterfaceStats(ifid)
|
|||
res["epoch"] = os.time()
|
||||
res["localtime"] = os.date("%H:%M:%S %z", res["epoch"])
|
||||
res["uptime"] = secondsToTime(uptime)
|
||||
res["system_host_stats"] = ntop.systemHostStat()
|
||||
res["system_host_stats"] = system_utils.systemHostStats()
|
||||
res["hosts_pctg"] = hosts_pctg
|
||||
res["flows_pctg"] = flows_pctg
|
||||
res["macs_pctg"] = macs_pctg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue