提交 24b0161c authored 作者: Anthony Minessale's avatar Anthony Minessale

always change bw

上级 1c8088a4
...@@ -204,7 +204,7 @@ function do_speed_test(fn) ...@@ -204,7 +204,7 @@ function do_speed_test(fn)
vertoHandle.rpcClient.speedTest(1024 * 256, function(e, obj) { vertoHandle.rpcClient.speedTest(1024 * 256, function(e, obj) {
//console.error("Up: " + obj.upKPS, "Down: ", obj.downKPS); //console.error("Up: " + obj.upKPS, "Down: ", obj.downKPS);
var vid = "default"; var vid = "default";
if (outgoingBandwidth === "default") { //if (outgoingBandwidth === "default") {
outgoingBandwidth = Math.ceil(obj.upKPS * .75).toString(); outgoingBandwidth = Math.ceil(obj.upKPS * .75).toString();
$("#vqual_hd").prop("checked", true); $("#vqual_hd").prop("checked", true);
...@@ -218,7 +218,7 @@ function do_speed_test(fn) ...@@ -218,7 +218,7 @@ function do_speed_test(fn)
$("#vqual_qvga").prop("checked", true); $("#vqual_qvga").prop("checked", true);
vid = "320x240"; vid = "320x240";
} }
} //}
if (incomingBandwidth === "default") { if (incomingBandwidth === "default") {
incomingBandwidth = Math.ceil(obj.downKPS * .75).toString(); incomingBandwidth = Math.ceil(obj.downKPS * .75).toString();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论