mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 19:26:59 +03:00
Change of number of decimal places to 1
Change of number of decimal places to 1 in speed and size values.
This commit is contained in:
parent
b2876b7f66
commit
2275735b81
1 changed files with 1 additions and 4 deletions
|
@ -16,10 +16,7 @@ function friendlyUnit(value, isSpeed) {
|
|||
while (value >= 1024. && i++ < 6)
|
||||
value /= 1024.;
|
||||
var ret;
|
||||
if (i == 0)
|
||||
ret = value.toFixed(2) + " " + units[0];
|
||||
else
|
||||
ret = value.toFixed(2) + " " + units[i];
|
||||
ret = value.toFixed(1) + " " + units[i];
|
||||
if (isSpeed)
|
||||
ret += "_(/s)";
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue