mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fixes attempt to index nil value
This commit is contained in:
parent
824c2c9db8
commit
d4ce7caae6
1 changed files with 1 additions and 1 deletions
|
|
@ -1107,7 +1107,7 @@ function driver:queryTotal(schema, tstart, tend, tags, options)
|
|||
local totals = {}
|
||||
|
||||
local serie_idx = 0
|
||||
for _, _ in pairs(fdata) do
|
||||
for _, _ in pairs(fdata or {}) do
|
||||
serie_idx = serie_idx + 1 -- the first id is 1
|
||||
local name = schema._metrics[serie_idx]
|
||||
local fdata_name = names[serie_idx]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue