JUCI: remove auto mode from speedtest page refs #15387
authorRobin Stjerndorff <robin.stjerndorff@iopsys.eu>
Fri, 7 Sep 2018 12:19:47 +0000 (14:19 +0200)
committerSukru Senli <sukru.senli@iopsys.eu>
Sat, 8 Sep 2018 11:40:39 +0000 (13:40 +0200)
plugins/juci-diagnostics/src/widgets/diagnostics-widget-speedtest.html
plugins/juci-diagnostics/ubus/juci.diagnostics

index d6e50fd..2d5dce8 100644 (file)
@@ -5,18 +5,20 @@
                        <juci-config-line title="{{'Direction'|translate}}">
                                <juci-select ng-model="data.test_type" ng-items="testType"></juci-select>
                        </juci-config-line>
+<!--
                        <juci-config-line title="{{'Automatic transfer size'|translate}}">
                                <div class="input-group">
                                        <switch class="green" ng-model="data.auto" />
                                </div>
                        </juci-config-line>
-                       <juci-config-line ng-show="!data.auto && (data.test_type=='down' || data.test_type=='up_down')" title="{{'Download transfer size'|translate}}">
+-->
+                       <juci-config-line ng-show="(data.test_type=='down' || data.test_type=='up_down')" title="{{'Download transfer size'|translate}}">
                                <div class="input-group">
                                        <input type="number" min="0" max="500" step="5" class="form-control" ng-model="data.downsize" placeholder="[Mbyte]" />
                                        <span class="input-group-addon">MB</span>
                                </div>
                        </juci-config-line>
-                       <juci-config-line ng-show="!data.auto && (data.test_type=='up' || data.test_type=='up_down')" title="{{'Upload transfer size'|translate}}">
+                       <juci-config-line ng-show="(data.test_type=='up' || data.test_type=='up_down')" title="{{'Upload transfer size'|translate}}">
                                <div class="input-group">
                                        <input type="number" min="0" max="500" step="5" class="form-control" ng-model="data.upsize" placeholder="[Mbyte]" />
                                        <span class="input-group-addon">MB</span>
index 9aae9e2..a433122 100755 (executable)
@@ -76,20 +76,20 @@ get_packet_sizes () {
        else
                case "$option" in
                        ethernet)
-                               packetsize_up=5
+                               packetsize_up=10
                                packetsize_down=100
                                ;;
                        vdsl)
-                               packetsize_up=3
+                               packetsize_up=5
                                packetsize_down=50
                                ;;
                        adsl)
                                packetsize_up=1
-                               packetsize_down=25
+                               packetsize_down=10
                                ;;
                        *)
                                packetsize_up=1
-                               packetsize_down=25
+                               packetsize_down=10
                esac
        fi
 }