mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Additional cleanup for system interface handling
This commit is contained in:
parent
aea96c3bbc
commit
6767a5b8c7
5 changed files with 1 additions and 12 deletions
|
|
@ -142,14 +142,9 @@ end
|
|||
-- #################################
|
||||
|
||||
function cpu_utils.systemHostStats()
|
||||
local cur_id = interface.getId()
|
||||
interface.select(getSystemInterfaceId())
|
||||
|
||||
local system_host_stats = ntop.systemHostStat()
|
||||
system_host_stats["cpu_states"] = cpu_utils.get_cpu_states()
|
||||
|
||||
interface.select(tostring(cur_id))
|
||||
|
||||
return system_host_stats
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue