git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
9ae1f47
)
luci-app-statistics: stat-genconfig: handle RRATimespans in list notation
author
Jo-Philipp Wich
<redacted>
Fri, 14 Feb 2020 09:06:50 +0000
(10:06 +0100)
committer
Jo-Philipp Wich
<redacted>
Fri, 14 Feb 2020 09:06:50 +0000
(10:06 +0100)
Signed-off-by: Jo-Philipp Wich <redacted>
applications/luci-app-statistics/root/usr/bin/stat-genconfig
patch
|
blob
|
history
diff --git
a/applications/luci-app-statistics/root/usr/bin/stat-genconfig
b/applications/luci-app-statistics/root/usr/bin/stat-genconfig
index 8b14c29e57ffa494be5f2626d91e8edd9d2b274a..152e584da44f4bb01c8d4d2f132923166c1c0658 100755
(executable)
--- 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, " ")
git clone https://git.99rst.org/PROJECT