mirror of
https://github.com/transmission/transmission.git
synced 2026-04-17 23:54:19 +01:00
Qt: Fix bad downloaded percentage in DetailsDialog
It was always 0.0% as long as the torrent was not finished.
This commit is contained in:
@@ -442,7 +442,7 @@ DetailsDialog::refresh ()
|
||||
}
|
||||
}
|
||||
|
||||
const double d = 100.0 * (sizeWhenDone ? (sizeWhenDone - leftUntilDone) / sizeWhenDone : 1);
|
||||
const double d = sizeWhenDone ? 100.0 * (sizeWhenDone - leftUntilDone) / sizeWhenDone : 100.0;
|
||||
QString pct = Formatter::percentToString (d);
|
||||
|
||||
if (!haveUnverified && !leftUntilDone)
|
||||
|
||||
Reference in New Issue
Block a user