Fixes for host pools historical stats

This commit is contained in:
Simone Mainardi 2017-01-26 14:41:14 +01:00
parent 17c5a4af57
commit e5a57d93ad
6 changed files with 34 additions and 11 deletions

View file

@ -171,7 +171,7 @@ function host_pools_utils.updateRRDs(ifid, dump_ndpi, verbose)
-- Traffic stats
local rrdpath = fixPath(pool_base .. "/bytes.rrd")
createRRDcounter(rrdpath, 300, verbose)
ntop.rrd_update(rrdpath, "N:"..tolongint(pool_stats["packets.sent"]) .. ":" .. tolongint(pool_stats["packets.recv"]))
ntop.rrd_update(rrdpath, "N:"..tolongint(pool_stats["bytes.sent"]) .. ":" .. tolongint(pool_stats["bytes.recv"]))
-- nDPI stats
if dump_ndpi then