luci-app-statistics: stat-genconfig: handle RRATimespans in list notation

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2020-02-14 10:06:50 +01:00
parent 9ae1f47896
commit 108b78525a

View file

@ -302,7 +302,7 @@ end
preprocess = {
RRATimespans = function(val)
local rv = { }
for time in val:gmatch("[^%s]+") do
for time in luci.util.imatch(val) do
table.insert( rv, luci.util.parse_units(time) )
end
return table.concat(rv, " ")