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() { get backupPercentage() {
const progress = this._progress.get(); const progress = this._progress.get();
if (progress) { if (progress) {
return Math.round(progress.finished / progress.total) * 100; return Math.round((progress.finished / progress.total) * 100);
} }
return 0; return 0;
} }