mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Change check
This commit is contained in:
parent
f1d3b473b4
commit
257ac5e71f
1 changed files with 1 additions and 1 deletions
|
|
@ -726,7 +726,7 @@ local function delta_val(reg, metric_name, granularity, curr_val, skip_first)
|
|||
-- Read cached value and purify it
|
||||
local prev_val
|
||||
local prev = reg.getCachedAlertValue(key, granularity_num)
|
||||
if prev == nil or type(prev) ~= "number" then -- Safety check and debug
|
||||
if prev == nil or type(prev) == "table" then -- Safety check and debug
|
||||
traceError(TRACE_ERROR, TRACE_CONSOLE, "Bad prev val")
|
||||
tprint(prev)
|
||||
tprint(debug.traceback())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue