Skip to content

Commit

Permalink
sync (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan168 authored Apr 19, 2024
2 parents 7de4fba + 72f5277 commit f020546
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,15 @@ return view.extend({
o.value('25');
o.modalonly = true;

o = s.option(form.ListValue, "timeout", _("Ping timeout"));
o = s.option(form.Value, "timeout", _("Ping timeout"));
o.default = '4';
o.value('1', _('%d second').format('1'));
for (var i = 2; i <= 10; i++)
o.value(String(i), _('%d seconds').format(i));
o.rmempty = false;
o.modalonly = true;

o = s.option(form.ListValue, 'interval', _('Ping interval'));
o = s.option(form.Value, 'interval', _('Ping interval'));
o.default = '10';
o.value('1', _('%d second').format('1'));
o.value('3', _('%d seconds').format('3'));
Expand All @@ -220,6 +221,8 @@ return view.extend({
o.value('900', _('%d minutes').format('15'));
o.value('1800', _('%d minutes').format('30'));
o.value('3600', _('%d hour').format('1'));
o.modalonly = true;
o.rmempty = false;

o = s.option(form.Value, 'failure_interval', _('Failure interval'),
_('Ping interval during failure detection'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ function wizard_add()
-- ucic:set("sqm","omrvpn","enabled","0")
--end

ucic:set("sqm","omrvpn","enabled","1")
ucic:set("sqm","omrvpn","enabled","0")
ucic:set("sqm","omrvpn","download","0")
ucic:set("sqm","omrvpn","upload","0")

Expand Down
9 changes: 9 additions & 0 deletions luci-theme-design/root/etc/uci-defaults/30_luci-theme-design
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

uci get luci.themes.Design >/dev/null 2>&1 || \
uci batch <<-EOF
set luci.themes.Design=/luci-static/design
commit luci
EOF

exit 0
4 changes: 2 additions & 2 deletions openmptcprouter/files/etc/uci-defaults/2040-omr-sqm
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ if [ "$(uci -q get sqm.omrvpn)" = "" ] || [ -z "$(uci -q get sqm.omrvpn.delay_th
set sqm.omrvpn.verbosity='5'
set sqm.omrvpn.overhead='44'
set sqm.omrvpn.iqdisc_opts='autorate-ingress'
set sqm.omrvpn.delay_thr_ms='300'
set sqm.omrvpn.delay_thr_ms='300.0'
set sqm.omrvpn.reflector_ping_interval_s='0.5'
set sqm.omrvpn.enable_sleep_function='0'
set sqm.omrvpn.autorate='1'
set sqm.omrvpn.autorate='0'
commit sqm
EOF
fi
Expand Down

0 comments on commit f020546

Please sign in to comment.