]> git.p6c8.net - jirafeau_project.git/commitdiff
[BUGFIX] fixing upload speed units
authorJerome Jutteau <jerome@jutteau.fr>
Sun, 15 Nov 2020 20:37:35 +0000 (21:37 +0100)
committerJerome Jutteau <jerome@jutteau.fr>
Sun, 15 Nov 2020 20:37:35 +0000 (21:37 +0100)
closes #225

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
lib/functions.js.php

index b2580b512b9d3029a508868a290b4b733f768e9b..8ce56d3946e2ebe5d444fbd493379c5c965b8494 100644 (file)
@@ -623,17 +623,17 @@ function upload_time_estimation_speed_string()
     if (s <= 1000)
     {
         res = s.toString();
-        scale = "Bit/s";
+        scale = "B/s";
     }
     else if (s < 1000000)
     {
         res = Math.floor(s/100) / 10;
-        scale = "KBit/s";
+        scale = "KB/s";
     }
     else
     {
         res = Math.floor(s/100000) / 10;
-        scale = "Mbit/s";
+        scale = "MB/s";
     }
     if (res == 0)
         return '';

patrick-canterino.de