Lua 5.4 string.format is stricter than LuaJIT and requires %d to receive
actual integers. Use %.0f for timestamp differences which are floats.
if last_collection > 0 and settings.limits.max_interval > 0 then
if now - last_collection > settings.limits.max_interval then
need_collect = true
- reason = string.format('limit of time since last collection has been reached: %d seconds passed ' ..
- '(%d seconds trigger)',
+ reason = string.format('limit of time since last collection has been reached: %.0f seconds passed ' ..
+ '(%.0f seconds trigger)',
(now - last_collection), settings.limits.max_interval)
end
end