From: Jo-Philipp Wich Date: Fri, 14 Feb 2020 09:06:50 +0000 (+0100) Subject: luci-app-statistics: stat-genconfig: handle RRATimespans in list notation X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=108b78525a37c8bb424b66b10d36f1676d2bab8a;p=oweals%2Fluci.git luci-app-statistics: stat-genconfig: handle RRATimespans in list notation Signed-off-by: Jo-Philipp Wich --- 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, " ")