mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fix report error at startup
This commit is contained in:
parent
7a3874b80b
commit
8c5b4e4ae7
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ function getProtoVolume(ifName, start_time, end_time)
|
|||
-- NOTE: this could be optimized via a dedicated driver call
|
||||
local data = ts_utils.query("iface:ndpi", tags, start_time, end_time)
|
||||
|
||||
if(data ~= nil) then
|
||||
if(data ~= nil) and (data.statistics.total > 0) then
|
||||
ret[tags.protocol] = data.statistics.total
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue