diff options
Diffstat (limited to 'applications/luci-app-statistics/root')
-rwxr-xr-x | applications/luci-app-statistics/root/etc/uci-defaults/40_luci-statistics | 1 | ||||
-rwxr-xr-x | applications/luci-app-statistics/root/usr/bin/stat-genconfig | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/applications/luci-app-statistics/root/etc/uci-defaults/40_luci-statistics b/applications/luci-app-statistics/root/etc/uci-defaults/40_luci-statistics index 28e35298a2..c05cb82af0 100755 --- a/applications/luci-app-statistics/root/etc/uci-defaults/40_luci-statistics +++ b/applications/luci-app-statistics/root/etc/uci-defaults/40_luci-statistics @@ -12,5 +12,4 @@ EOF [ -x /usr/sbin/httpd ] && [ ! -h /www/rrdimg ] && \ ln -s /tmp/rrdimg /www/rrdimg -rm -f /tmp/luci-indexcache exit 0 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, " ") |