mirror of
https://github.com/transmission/transmission
synced 2024-12-28 10:38:45 +00:00
Merge pull request #547 from dubhater/patch-6
Qt: Fix bad downloaded percentage in DetailsDialog
This commit is contained in:
commit
0b5ec3a00d
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ void DetailsDialog::refresh()
|
|||
}
|
||||
}
|
||||
|
||||
double const d = 100.0 * (sizeWhenDone != 0 ? (sizeWhenDone - leftUntilDone) / sizeWhenDone : 1);
|
||||
double const d = sizeWhenDone != 0 ? 100.0 * (sizeWhenDone - leftUntilDone) / sizeWhenDone : 100.0;
|
||||
QString pct = Formatter::percentToString(d);
|
||||
|
||||
if (haveUnverified == 0 && leftUntilDone == 0)
|
||||
|
|
Loading…
Reference in a new issue