This commit is contained in:
Barış Soner Uşaklı
2017-12-25 22:26:24 -05:00
parent 23dbb42130
commit c3f56e2ab5

View File

@@ -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);