From 2e8aa301aa2a1aa07438de8dd962c21f0c8559f2 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 13 Nov 2019 17:08:58 +0100 Subject: luci-app-nlbwon: fix parsing relative interval values from config Fixes: #3302 Signed-off-by: Jo-Philipp Wich --- applications/luci-app-nlbwmon/luasrc/model/cbi/nlbw/config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/luci-app-nlbwmon/luasrc/model/cbi/nlbw/config.lua b/applications/luci-app-nlbwmon/luasrc/model/cbi/nlbw/config.lua index 71e096c617..08df5b332e 100644 --- a/applications/luci-app-nlbwmon/luasrc/model/cbi/nlbw/config.lua +++ b/applications/luci-app-nlbwmon/luasrc/model/cbi/nlbw/config.lua @@ -72,8 +72,8 @@ interval:depends("_period", "relative") interval.write = period.write interval.cfgvalue = function(self, cfg) - local val = m:get(cfg, "database_interval") - return val and tonumber(val) + local val = tonumber(m:get(cfg, "database_interval")) + return val and tostring(val) end -- cgit v1.2.3