Merge pull request #547 from dubhater/patch-6
Qt: Fix bad downloaded percentage in DetailsDialog
This commit is contained in:
commit
0b5ec3a00d
|
@ -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);
|
QString pct = Formatter::percentToString(d);
|
||||||
|
|
||||||
if (haveUnverified == 0 && leftUntilDone == 0)
|
if (haveUnverified == 0 && leftUntilDone == 0)
|
||||||
|
|
Loading…
Reference in New Issue