[BUGFIX] fixing upload speed units

closes #225

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
This commit is contained in:
Jerome Jutteau 2020-11-15 21:37:35 +01:00
parent eff708d9f1
commit 2e4d09c865

View 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 '';