mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Possible fix related to empty timeseries chart
This commit is contained in:
parent
996ea35acd
commit
b2fe708dbc
6 changed files with 29 additions and 20 deletions
|
|
@ -1221,10 +1221,10 @@ function driver:queryTotal(schema, tstart, tend, tags, options)
|
|||
serie[#serie] = nil
|
||||
|
||||
for i, v in pairs(serie) do
|
||||
local v = ts_common.normalizeVal(v, max_val, options)
|
||||
local x = ts_common.normalizeVal(v, max_val, options)
|
||||
|
||||
-- v is not null
|
||||
if v == v then sum = sum + v * fstep end
|
||||
if x == x then sum = sum + x * fstep end
|
||||
end
|
||||
|
||||
totals[name] = sum
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue