From: Jerome Jutteau Date: Sun, 15 Nov 2020 20:37:35 +0000 (+0100) Subject: [BUGFIX] fixing upload speed units X-Git-Tag: 4.2.0~54 X-Git-Url: https://git.p6c8.net/jirafeau.git/commitdiff_plain/2e4d09c8651f80fc4272803602bd813269618383?ds=inline [BUGFIX] fixing upload speed units closes #225 Signed-off-by: Jerome Jutteau --- diff --git a/lib/functions.js.php b/lib/functions.js.php index b2580b5..8ce56d3 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -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 '';