mirror of
https://gitlab.com/mojo42/Jirafeau.git
synced 2025-04-21 20:21:51 +02:00
[BUGFIX] fixing upload speed units
closes #225 Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
This commit is contained in:
parent
eff708d9f1
commit
2e4d09c865
@ -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 '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user