forked from mystiq/hydrogen-web
fix percentage calculation
This commit is contained in:
parent
a757fb3696
commit
dacaa86386
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue