From c3f56e2ab584ebbd292686cb2c93f2845fd314ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 25 Dec 2017 22:26:24 -0500 Subject: [PATCH] closes #6197 --- src/upgrade.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);