From 2e4d09c8651f80fc4272803602bd813269618383 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Sun, 15 Nov 2020 21:37:35 +0100 Subject: [PATCH 1/1] [BUGFIX] fixing upload speed units closes #225 Signed-off-by: Jerome Jutteau --- lib/functions.js.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ''; -- 2.34.1