mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Some sqm-autorate fixes
This commit is contained in:
parent
377c34fd05
commit
e613de8cff
5 changed files with 6 additions and 5 deletions
|
@ -289,7 +289,8 @@ return view.extend({
|
||||||
o.depends("autorate","1");
|
o.depends("autorate","1");
|
||||||
|
|
||||||
o = s.taboption("tab_autorate", form.Value, "startup_wait_s",_("Number of seconds to wait on startup:"));
|
o = s.taboption("tab_autorate", form.Value, "startup_wait_s",_("Number of seconds to wait on startup:"));
|
||||||
o.default = "60";
|
o.default = "60.0";
|
||||||
|
o.datatype = 'float'
|
||||||
o.depends("autorate","1");
|
o.depends("autorate","1");
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ start_service() {
|
||||||
rm -f /usr/share/sqm-autorate/config.*.sh
|
rm -f /usr/share/sqm-autorate/config.*.sh
|
||||||
config_load sqm
|
config_load sqm
|
||||||
config_foreach _config_autorate queue
|
config_foreach _config_autorate queue
|
||||||
_launch_autorate
|
[ -n "$(ls /usr/share/sqm-autorate/config.*.sh 2>/dev/null)" ] && _launch_autorate
|
||||||
}
|
}
|
||||||
|
|
||||||
reload_service() {
|
reload_service() {
|
||||||
|
|
|
@ -2204,7 +2204,7 @@ do
|
||||||
|
|
||||||
log_msg "DEBUG" "Warning: no reflector response within: ${stall_detection_timeout_s} seconds. Checking loads."
|
log_msg "DEBUG" "Warning: no reflector response within: ${stall_detection_timeout_s} seconds. Checking loads."
|
||||||
|
|
||||||
log_msg "DEBUG" "load check is: (( ${achieved_rate_kbps[dl]} kbps > ${connection_stall_thr_kbps} kbps for download && ${achieved_rate_kbps[ul]} kbps > ${connection_stall_thr_kbps} kbps for upload ))"
|
#log_msg "DEBUG" "load check is: (( ${achieved_rate_kbps[dl]} kbps > ${connection_stall_thr_kbps} kbps for download && ${achieved_rate_kbps[ul]} kbps > ${connection_stall_thr_kbps} kbps for upload ))"
|
||||||
|
|
||||||
# non-zero load so despite no reflector response within stall interval, the connection not considered to have stalled
|
# non-zero load so despite no reflector response within stall interval, the connection not considered to have stalled
|
||||||
# and therefore resume normal operation
|
# and therefore resume normal operation
|
||||||
|
|
|
@ -200,7 +200,7 @@ reflector_owd_delta_ewma_delta_thr_ms=10 # mac increase from min delta ewma be
|
||||||
stall_detection_thr=5
|
stall_detection_thr=5
|
||||||
connection_stall_thr_kbps=10
|
connection_stall_thr_kbps=10
|
||||||
|
|
||||||
global_ping_response_timeout_s=100.0 # timeout to set shaper rates to min on no ping response whatsoever (seconds)
|
global_ping_response_timeout_s=${dl_delay_thr_ms} # timeout to set shaper rates to min on no ping response whatsoever (seconds)
|
||||||
|
|
||||||
if_up_check_interval_s=10.0 # time to wait before re-checking if rx/tx bytes files exist (e.g. from boot state or sleep recovery)
|
if_up_check_interval_s=10.0 # time to wait before re-checking if rx/tx bytes files exist (e.g. from boot state or sleep recovery)
|
||||||
|
|
||||||
|
|
|
@ -197,7 +197,7 @@ reflector_owd_delta_ewma_delta_thr_ms=10 # max increase from min delta ewma befo
|
||||||
stall_detection_thr=5
|
stall_detection_thr=5
|
||||||
connection_stall_thr_kbps=10
|
connection_stall_thr_kbps=10
|
||||||
|
|
||||||
global_ping_response_timeout_s=10.0 # timeout to set shaper rates to min on no ping response whatsoever (seconds)
|
global_ping_response_timeout_s=10 # timeout to set shaper rates to min on no ping response whatsoever (seconds)
|
||||||
|
|
||||||
if_up_check_interval_s=10.0 # time to wait before re-checking if rx/tx bytes files exist (e.g. from boot state or sleep recovery)
|
if_up_check_interval_s=10.0 # time to wait before re-checking if rx/tx bytes files exist (e.g. from boot state or sleep recovery)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue