summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-11-13 17:08:58 +0100
committerJo-Philipp Wich <jo@mein.io>2019-11-13 17:09:34 +0100
commit2e8aa301aa2a1aa07438de8dd962c21f0c8559f2 (patch)
tree9a765f61f2f5673b41ff4648d05f8dab04d16460 /applications
parenta3ea891b7e6352f7f723276ef08c1fc40754bdc4 (diff)
luci-app-nlbwon: fix parsing relative interval values from config
Fixes: #3302 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-nlbwmon/luasrc/model/cbi/nlbw/config.lua4
1 files 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 71e096c61..08df5b332 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