From 63583cb3f46bf0f928ee48be47018a55d39f6c2c Mon Sep 17 00:00:00 2001 From: Stefan Stidl Date: Sun, 5 Nov 2023 01:05:50 +0100 Subject: [PATCH] switch units to Mbit/s --- doc.md | 4 ++-- docker/frontend.php | 4 ++-- docker/standalone.php | 4 ++-- example-multipleServers-full.html | 4 ++-- example-multipleServers-pretty.html | 4 ++-- example-singleServer-customSettings.html | 4 ++-- example-singleServer-full.html | 4 ++-- example-singleServer-gauges.html | 4 ++-- example-singleServer-pretty.html | 4 ++-- example-singleServer-progressBar.html | 4 ++-- results/index.php | 2 +- speedtest.js | 4 ++-- 12 files changed, 23 insertions(+), 23 deletions(-) diff --git a/doc.md b/doc.md index 51b5db9..7321419 100755 --- a/doc.md +++ b/doc.md @@ -507,8 +507,8 @@ You can think of this as a finite state machine. These are the states (use getSt While in state 1, you can only add test points, you cannot change the test settings. When you're done, use selectServer(callback) to select the test point with the lowest ping. This is asynchronous, when it's done, it will call your callback function and move to state 2. Calling setSelectedServer(server) will manually select a server and move to state 2. * __2__: test point selected, ready to start the test. Use `start()` to begin, this will move to state 3 * __3__: test running. Here, your `onupdate` event callback will be called periodically, with data coming from the worker about speed and progress. A data object will be passed to your `onupdate` function, with the following items: - - `dlStatus`: download speed in mbps - - `ulStatus`: upload speed in mbps + - `dlStatus`: download speed in Mbit/s + - `ulStatus`: upload speed in Mbit/s - `pingStatus`: ping in ms - `jitterStatus`: jitter in ms - `dlProgress`: progress of the download test as a float 0-1 diff --git a/docker/frontend.php b/docker/frontend.php index 8e801b6..33da560 100755 --- a/docker/frontend.php +++ b/docker/frontend.php @@ -409,13 +409,13 @@ function initUI(){
Download
-
Mbps
+
Mbit/s
Upload
-
Mbps
+
Mbit/s
diff --git a/docker/standalone.php b/docker/standalone.php index 62a4982..81dd318 100755 --- a/docker/standalone.php +++ b/docker/standalone.php @@ -301,13 +301,13 @@ function initUI(){
Download
-
Mbps
+
Mbit/s
Upload
-
Mbps
+
Mbit/s
diff --git a/example-multipleServers-full.html b/example-multipleServers-full.html index 065e3d5..ed59473 100755 --- a/example-multipleServers-full.html +++ b/example-multipleServers-full.html @@ -424,13 +424,13 @@ function initUI(){
Download
-
Mbps
+
Mbit/s
Upload
-
Mbps
+
Mbit/s
diff --git a/example-multipleServers-pretty.html b/example-multipleServers-pretty.html index 4316eab..742238b 100755 --- a/example-multipleServers-pretty.html +++ b/example-multipleServers-pretty.html @@ -212,12 +212,12 @@ function I(id){return document.getElementById(id);}
Download
-
Mbps
+
Mbit/s
Upload
-
Mbps
+
Mbit/s
diff --git a/example-singleServer-customSettings.html b/example-singleServer-customSettings.html index b1c0cfb..1a06f89 100755 --- a/example-singleServer-customSettings.html +++ b/example-singleServer-customSettings.html @@ -157,12 +157,12 @@ function I(id){return document.getElementById(id);}
Download
-
Mbps
+
Mbit/s
Upload
-
Mbps
+
Mbit/s
diff --git a/example-singleServer-full.html b/example-singleServer-full.html index d72aa66..2627615 100755 --- a/example-singleServer-full.html +++ b/example-singleServer-full.html @@ -298,13 +298,13 @@ function initUI(){
Download
-
Mbps
+
Mbit/s
Upload
-
Mbps
+
Mbit/s
diff --git a/example-singleServer-gauges.html b/example-singleServer-gauges.html index 9a49705..0b6c388 100755 --- a/example-singleServer-gauges.html +++ b/example-singleServer-gauges.html @@ -242,13 +242,13 @@ function initUI(){
Download
-
Mbps
+
Mbit/s
Upload
-
Mbps
+
Mbit/s
diff --git a/example-singleServer-pretty.html b/example-singleServer-pretty.html index 7715535..eca431b 100755 --- a/example-singleServer-pretty.html +++ b/example-singleServer-pretty.html @@ -160,12 +160,12 @@ function I(id){return document.getElementById(id);}
Download
-
Mbps
+
Mbit/s
Upload
-
Mbps
+
Mbit/s
diff --git a/example-singleServer-progressBar.html b/example-singleServer-progressBar.html index f9e7007..ce037b6 100755 --- a/example-singleServer-progressBar.html +++ b/example-singleServer-progressBar.html @@ -180,12 +180,12 @@ function I(id){return document.getElementById(id);}
Download
-
Mbps
+
Mbit/s
Upload
-
Mbps
+
Mbit/s
diff --git a/results/index.php b/results/index.php index ad6beca..4559315 100755 --- a/results/index.php +++ b/results/index.php @@ -162,7 +162,7 @@ function drawImage($speedtest) $POSITION_Y_WATERMARK = 223 * $SCALE; // configure labels - $MBPS_TEXT = 'Mbps'; + $MBPS_TEXT = 'Mbit/s'; $MS_TEXT = 'ms'; $PING_TEXT = 'Ping'; $JIT_TEXT = 'Jitter'; diff --git a/speedtest.js b/speedtest.js index 143ce1f..ee8ab22 100755 --- a/speedtest.js +++ b/speedtest.js @@ -28,8 +28,8 @@ While in state 1, you can only add test points, you cannot change the test settings. When you're done, use selectServer(callback) to select the test point with the lowest ping. This is asynchronous, when it's done, it will call your callback function and move to state 2. Calling setSelectedServer(server) will manually select a server and move to state 2. - 2: test point selected, ready to start the test. Use start() to begin, this will move to state 3 - 3: test running. Here, your onupdate event callback will be called periodically, with data coming from the worker about speed and progress. A data object will be passed to your onupdate function, with the following items: - - dlStatus: download speed in mbps - - ulStatus: upload speed in mbps + - dlStatus: download speed in Mbit/s + - ulStatus: upload speed in Mbit/s - pingStatus: ping in ms - jitterStatus: jitter in ms - dlProgress: progress of the download test as a float 0-1