mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +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
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
local ts_utils = require("ts_utils_core")
|
||||
local user_scripts = require("user_scripts")
|
||||
local system_utils = require("system_utils")
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -28,7 +29,7 @@ local script = {
|
|||
|
||||
function script.hooks.min(params)
|
||||
if params.ts_enabled then
|
||||
local system_host_stats = ntop.systemHostStat()
|
||||
local system_host_stats = system_utils.systemHostStats()
|
||||
|
||||
if((system_host_stats.mem_ntopng_resident ~= nil) and
|
||||
(system_host_stats.mem_ntopng_virtual ~= nil)) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue