luci-app-statistics: stat-genconfig: handle RRATimespans in list notation
authorJo-Philipp Wich <jo@mein.io>
Fri, 14 Feb 2020 09:06:50 +0000 (10:06 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 14 Feb 2020 09:06:50 +0000 (10:06 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-statistics/root/usr/bin/stat-genconfig

index 8b14c29e57ffa494be5f2626d91e8edd9d2b274a..152e584da44f4bb01c8d4d2f132923166c1c0658 100755 (executable)
@@ -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, " ")