mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-06 15:04:34 +08: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(GiB)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)
|
||||
return "QBT_TR(Unknown)QBT_TR[CONTEXT=misc]";
|
||||
|
||||
var i = 0;
|
||||
while (value >= 1024. && i < 4) {
|
||||
while (value >= 1024. && i < 6) {
|
||||
value /= 1024.;
|
||||
++i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user