diff --git a/assets/example-multipleServers-full.html b/assets/example-multipleServers-full.html index 6a78d10..a4c6b1a 100644 --- a/assets/example-multipleServers-full.html +++ b/assets/example-multipleServers-full.html @@ -398,13 +398,13 @@ function initUI(){
Download
-
Mbps
+
Mbit/s
Upload
-
Mbps
+
Mbit/s
diff --git a/assets/example-multipleServers-pretty.html b/assets/example-multipleServers-pretty.html index b7365fd..6ed98ab 100644 --- a/assets/example-multipleServers-pretty.html +++ b/assets/example-multipleServers-pretty.html @@ -192,12 +192,12 @@ function I(id){return document.getElementById(id);}
Download
-
Mbps
+
Mbit/s
Upload
-
Mbps
+
Mbit/s
diff --git a/assets/example-singleServer-customSettings.html b/assets/example-singleServer-customSettings.html index b1c0cfb..1a06f89 100644 --- a/assets/example-singleServer-customSettings.html +++ b/assets/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/assets/example-singleServer-full.html b/assets/example-singleServer-full.html index f63424d..34a4bf4 100644 --- a/assets/example-singleServer-full.html +++ b/assets/example-singleServer-full.html @@ -301,13 +301,13 @@ function initUI(){
Download
-
Mbps
+
Mbit/s
Upload
-
Mbps
+
Mbit/s
diff --git a/assets/example-singleServer-gauges.html b/assets/example-singleServer-gauges.html index 9a49705..0b6c388 100644 --- a/assets/example-singleServer-gauges.html +++ b/assets/example-singleServer-gauges.html @@ -242,13 +242,13 @@ function initUI(){
Download
-
Mbps
+
Mbit/s
Upload
-
Mbps
+
Mbit/s
diff --git a/assets/example-singleServer-pretty.html b/assets/example-singleServer-pretty.html index 7715535..eca431b 100644 --- a/assets/example-singleServer-pretty.html +++ b/assets/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/assets/example-singleServer-progressBar.html b/assets/example-singleServer-progressBar.html index f9e7007..ce037b6 100644 --- a/assets/example-singleServer-progressBar.html +++ b/assets/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/assets/speedtest.js b/assets/speedtest.js index c2f1b2f..41df073 100644 --- a/assets/speedtest.js +++ b/assets/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 calback 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/assets/speedtest_worker.js b/assets/speedtest_worker.js index f5bad4c..16164aa 100644 --- a/assets/speedtest_worker.js +++ b/assets/speedtest_worker.js @@ -7,8 +7,8 @@ // data reported to main thread var testState = -1; // -1=not started, 0=starting, 1=download test, 2=ping+jitter test, 3=upload test, 4=finished, 5=abort -var dlStatus = ""; // download speed in megabit/s with 2 decimal digits -var ulStatus = ""; // upload speed in megabit/s with 2 decimal digits +var dlStatus = ""; // download speed in Mbit/s with 2 decimal digits +var ulStatus = ""; // upload speed in Mbit/s with 2 decimal digits var pingStatus = ""; // ping in milliseconds with 2 decimal digits var jitterStatus = ""; // jitter in milliseconds with 2 decimal digits var clientIp = ""; // client's IP address as reported by getIP @@ -61,7 +61,7 @@ var settings = { enable_quirks: true, // enable quirks for specific browsers. currently it overrides settings to optimize for specific browsers, unless they are already being overridden with the start command ping_allowPerformanceApi: true, // if enabled, the ping test will attempt to calculate the ping more precisely using the Performance API. Currently works perfectly in Chrome, badly in Edge, and not at all in Firefox. If Performance API is not supported or the result is obviously wrong, a fallback is provided. overheadCompensationFactor: 1.06, //can be changed to compensatie for transport overhead. (see doc.md for some other values) - useMebibits: false, //if set to true, speed will be reported in mebibits/s instead of megabits/s + useMebibits: false, //if set to true, speed will be reported in Mibit/s instead of Mbit/s telemetry_level: 0, // 0=disabled, 1=basic (results only), 2=full (results and timing) 3=debug (results+log) url_telemetry: "results/telemetry", // path to the script that adds telemetry data to the database telemetry_extra: "" //extra data that can be passed to the telemetry through the settings diff --git a/results/telemetry.go b/results/telemetry.go index 1706ef3..1492170 100644 --- a/results/telemetry.go +++ b/results/telemetry.go @@ -29,7 +29,7 @@ const ( watermark = "LibreSpeed" labelMS = " ms" - labelMbps = "Mbps" + labelMbps = "Mbit/s" labelPing = "Ping" labelJitter = "Jitter" labelDownload = "Download"