diff --git a/applications/luci-app-statistics/root/usr/libexec/stat-genconfig b/applications/luci-app-statistics/root/usr/libexec/stat-genconfig index 130f8f387614..0d6bd6704f69 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)); } };