Change check

This commit is contained in:
Alfredo Cardigliano 2023-10-31 09:19:44 +01:00
parent f1d3b473b4
commit 257ac5e71f

View file

@ -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())