Additional cleanup for system interface handling

This commit is contained in:
Simone Mainardi 2021-05-11 14:13:06 +02:00
parent aea96c3bbc
commit 6767a5b8c7
5 changed files with 1 additions and 12 deletions

View file

@ -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