From 28781379bda92909b5fcbcad7190bf9a32e68812 Mon Sep 17 00:00:00 2001 From: Filippo Tessarotto Date: Fri, 24 Mar 2017 11:45:16 +0100 Subject: [PATCH] Pad percent progress --- src/Output.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Output.php b/src/Output.php index 5cd6c2c4..f85a311d 100644 --- a/src/Output.php +++ b/src/Output.php @@ -285,7 +285,7 @@ protected function progress() protected function writeProgress() { - $percent = floor($this->checkedFiles / $this->totalFileCount * 100); + $percent = $this->stringWidth(floor($this->checkedFiles / $this->totalFileCount * 100), 3); $current = $this->stringWidth($this->checkedFiles, strlen($this->totalFileCount)); $this->writeLine(" $current/$this->totalFileCount ($percent %)"); }