mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: tweak upgrade script progress bar to only update 100 times in total
This commit is contained in:
@@ -173,7 +173,7 @@ Upgrade.incrementProgress = function (value) {
|
||||
this.current += value || 1;
|
||||
|
||||
// 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 filled = 0;
|
||||
var unfilled = 15;
|
||||
|
||||
Reference in New Issue
Block a user