diff options
Diffstat (limited to 'applications/luci-app-statistics/root/usr/bin/stat-genconfig')
-rwxr-xr-x | applications/luci-app-statistics/root/usr/bin/stat-genconfig | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/applications/luci-app-statistics/root/usr/bin/stat-genconfig b/applications/luci-app-statistics/root/usr/bin/stat-genconfig index 8b14c29e57..b03b547d48 100755 --- a/applications/luci-app-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-app-statistics/root/usr/bin/stat-genconfig @@ -183,9 +183,11 @@ function config_network( c ) end end - return str .. _string( c["TimeToLive"], "TimeToLive" ) - .. _string( c["CacheFlush"], "CacheFlush" ) - .. _bool( c["Forward"], "Forward" ) + return str .. + _string(c["MaxPacketSize"], "MaxPacketSize") .. + _string(c["TimeToLive"], "TimeToLive") .. + _bool(c["Forward"], "Forward") .. + _bool(c["ReportStats"], "ReportStats") end @@ -302,7 +304,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, " ") |