Skip to content

Node.js based forum software built for the modern web

closes #6197

Barış Soner Uşaklıc3f56e2ab584
diff --git a/src/upgrade.js b/src/upgrade.js
index ae0d70a4c0..f30a5f43d4 100644
--- a/src/upgrade.js
+++ b/src/upgrade.js
@@ -205,7 +205,7 @@ Upgrade.incrementProgress = function (value) {
if (this.total) {
percentage = Math.floor((this.current / this.total) * 100) + '%';
filled = Math.floor((this.current / this.total) * 15);
- unfilled = Math.min(0, 15 - filled);
+ unfilled = Math.max(0, 15 - filled);
}
readline.cursorTo(process.stdout, 0);