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:18:33 +0000 (21:18 +0100)
commit0a6a2f1fc5cbea81531e2c24ded46b4ecba27647
tree12918e1a6ec82d9ae0f5610559e47ed44b15199e
parentbbc4a909255c34630f7710aff636c519a12318bd
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