--- a/core/moduleapi.lua Fri Jul 21 18:30:06 2023 +0200
+++ b/core/moduleapi.lua Sat Jul 22 12:08:01 2023 +0200
@@ -295,10 +295,16 @@
return math.huge;
end
+ if type(min) == "string" then
+ min = human_io.parse_duration(min);
+ end
if min and ret < min then
self:log("warn", "Config option '%s' out of bounds %g < %g", name, ret, min);
return min;
end
+ if type(max) == "string" then
+ max = human_io.parse_duration(max);
+ end
if max and ret > max then
self:log("warn", "Config option '%s' out of bounds %g > %g", name, ret, max);
return max;