luci-app-statistics: fix prepare values from list vlaues
authorAleksey Kolosov <[email protected]>
Fri, 15 Nov 2024 07:42:55 +0000 (10:42 +0300)
committerPaul Donald <[email protected]>
Thu, 28 Nov 2024 20:17:03 +0000 (21:17 +0100)
commitd885ca5ce0616eef74dc472533c25a24ee242ba8
treef7c51dfa9803f373491a4854209a3bb871e0e77a
parent8f2a2545ff68e2764930b6e103f5078e4f55852c
luci-app-statistics: fix prepare values from list vlaues

If UCI store values as a list instead of an option, conversation for the
collectd configuration is not work correctly. This is due to the use of
a DynamicList type element in the UI (for example, for the RRATimespans
field). For this function argument val receives as array instead of a
string, so no additional conversion is required.

Signed-off-by: Aleksey Kolosov <[email protected]>
applications/luci-app-statistics/root/usr/libexec/stat-genconfig