From 108b78525a37c8bb424b66b10d36f1676d2bab8a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 14 Feb 2020 10:06:50 +0100 Subject: [PATCH] luci-app-statistics: stat-genconfig: handle RRATimespans in list notation Signed-off-by: Jo-Philipp Wich --- applications/luci-app-statistics/root/usr/bin/stat-genconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-statistics/root/usr/bin/stat-genconfig b/applications/luci-app-statistics/root/usr/bin/stat-genconfig index 8b14c29e5..152e584da 100755 --- a/applications/luci-app-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-app-statistics/root/usr/bin/stat-genconfig @@ -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, " ") -- 2.25.1