mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Fixes query total in case of nan value
This commit is contained in:
parent
9ef85cb798
commit
fa2d6cdf39
1 changed files with 2 additions and 1 deletions
|
|
@ -1163,7 +1163,8 @@ function driver:queryTotal(schema, tstart, tend, tags, options)
|
|||
for i, v in pairs(serie) do
|
||||
local v = ts_common.normalizeVal(v, max_val, options)
|
||||
|
||||
if type(v) == "number" then
|
||||
-- v is not null
|
||||
if v == v then
|
||||
sum = sum + v * fstep
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue