Fix many missing requires.

This commit is contained in:
Nicolo Maio 2024-02-20 10:14:40 +01:00
parent e243f7c826
commit 83634d06e1
6 changed files with 9 additions and 4 deletions

View file

@ -176,6 +176,7 @@ end
-- If a point value exceeds this value, it should be discarded as invalid
function ts_common.getMaxPointValue(schema, metric, tags)
require "lua_utils_get"
if tags.ifid ~= nil then
if string.contains(metric, "bytes") then
local ifspeed = getInterfaceSpeed(tonumber(tags.ifid))