mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-28 23:44:32 +00:00
Add missing unit sizes in misc.js
This commit is contained in:
parent
44c5a9beff
commit
0addeafc6b
@ -8,13 +8,15 @@ function friendlyUnit(value, isSpeed) {
|
|||||||
"QBT_TR(MiB)QBT_TR[CONTEXT=misc]",
|
"QBT_TR(MiB)QBT_TR[CONTEXT=misc]",
|
||||||
"QBT_TR(GiB)QBT_TR[CONTEXT=misc]",
|
"QBT_TR(GiB)QBT_TR[CONTEXT=misc]",
|
||||||
"QBT_TR(TiB)QBT_TR[CONTEXT=misc]",
|
"QBT_TR(TiB)QBT_TR[CONTEXT=misc]",
|
||||||
|
"QBT_TR(PiB)QBT_TR[CONTEXT=misc]",
|
||||||
|
"QBT_TR(EiB)QBT_TR[CONTEXT=misc]"
|
||||||
];
|
];
|
||||||
|
|
||||||
if (value < 0)
|
if (value < 0)
|
||||||
return "QBT_TR(Unknown)QBT_TR[CONTEXT=misc]";
|
return "QBT_TR(Unknown)QBT_TR[CONTEXT=misc]";
|
||||||
|
|
||||||
var i = 0;
|
var i = 0;
|
||||||
while (value >= 1024. && i < 4) {
|
while (value >= 1024. && i < 6) {
|
||||||
value /= 1024.;
|
value /= 1024.;
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user