fix percentage calculation

This commit is contained in:
Bruno Windels 2022-01-31 16:22:22 +01:00
parent a757fb3696
commit dacaa86386

View file

@ -157,7 +157,7 @@ export class KeyBackupViewModel extends ViewModel {
get backupPercentage() {
const progress = this._progress.get();
if (progress) {
return Math.round(progress.finished / progress.total) * 100;
return Math.round((progress.finished / progress.total) * 100);
}
return 0;
}