mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fix negative values handler in influxdb queries
This commit is contained in:
parent
bd0eee177d
commit
bd8ca9b6e7
1 changed files with 2 additions and 2 deletions
|
|
@ -132,9 +132,9 @@ function driver:query(schema, tstart, tend, tags, options)
|
|||
local val = values[i]
|
||||
|
||||
if val < options.min_value then
|
||||
val = min_value
|
||||
val = options.min_value
|
||||
elseif val > options.max_value then
|
||||
val = max_value
|
||||
val = options.max_value
|
||||
end
|
||||
|
||||
series[i-1].data[series_idx] = val
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue