summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xapplications/luci-app-statistics/root/usr/libexec/stat-genconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/root/usr/libexec/stat-genconfig b/applications/luci-app-statistics/root/usr/libexec/stat-genconfig
index 130f8f3876..0d6bd6704f 100755
--- a/applications/luci-app-statistics/root/usr/libexec/stat-genconfig
+++ b/applications/luci-app-statistics/root/usr/libexec/stat-genconfig
@@ -58,7 +58,7 @@ function parse_units(ustr) {
const preprocess = {
RRATimespans: function(val) {
- return join(' ', map(split(val, /\s+/), parse_units));
+ return join(' ', map(type(val) == 'array' ? val : split(val, /\s+/), parse_units));
}
};