mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Fixes attempt to index nil value
This commit is contained in:
parent
d7d372fd4d
commit
42480b23d1
1 changed files with 1 additions and 1 deletions
|
|
@ -370,7 +370,7 @@ function dumpBriefInterfaceStats(ifid)
|
|||
local total, total_in_progress = vs_utils.check_in_progress_status()
|
||||
res["vs_in_progress"] = total_in_progress or 0
|
||||
end
|
||||
if ntop.isClickHouseEnabled() then
|
||||
if ntop.isClickHouseEnabled() and ifstats.stats_since_reset["db"] then
|
||||
local s = {}
|
||||
s["flow_export_count"] = ifstats.stats_since_reset["db"].flow_export_count
|
||||
s["flow_export_drops"] = ifstats.stats_since_reset["db"].flow_export_drops
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue