fix: tweak upgrade script progress bar to only update 100 times in total

v1.18.x
Julian Lam 5 years ago
parent 80a2a700ce
commit ac75c9a052

@ -173,7 +173,7 @@ Upgrade.incrementProgress = function (value) {
this.current += value || 1; this.current += value || 1;
// Redraw the progress bar every 100 units // Redraw the progress bar every 100 units
if (this.current % 100 === 0) { if (this.current % (this.total ? Math.floor(this.total / 100) : 100) === 0 || this.current === this.total) {
var percentage = 0; var percentage = 0;
var filled = 0; var filled = 0;
var unfilled = 15; var unfilled = 15;

Loading…
Cancel
Save