luci-app-statistics: stat-genconfig: handle RRATimespans in list notation
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
9ae1f47896
commit
108b78525a
1 changed files with 1 additions and 1 deletions
|
@ -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, " ")
|
||||
|
|
Loading…
Reference in a new issue