mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fix user reset for ZMQ counters
This commit is contained in:
parent
9646ce60f1
commit
30ff92d472
1 changed files with 9 additions and 0 deletions
|
|
@ -150,6 +150,15 @@ function dumpInterfaceStats(ifid)
|
|||
end
|
||||
|
||||
if(ifstats.zmqRecvStats ~= nil) then
|
||||
|
||||
if ifstats.zmqRecvStats_since_reset then
|
||||
-- override stats with the values calculated from the latest user reset
|
||||
-- for consistency with if_stats.lua
|
||||
for k, v in pairs(ifstats.zmqRecvStats_since_reset) do
|
||||
ifstats.zmqRecvStats[k] = v
|
||||
end
|
||||
end
|
||||
|
||||
res["zmqRecvStats"] = {}
|
||||
res["zmqRecvStats"]["flows"] = ifstats.zmqRecvStats.flows
|
||||
res["zmqRecvStats"]["events"] = ifstats.zmqRecvStats.events
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue