luci-app-nlbwon: fix parsing relative interval values from config
Fixes: #3302
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 2e8aa301aa
)
This commit is contained in:
parent
ef819b5039
commit
bc060f931b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue