Browse Source

fix a render issue when the result of the progress is a float

antograssiot 10 years ago
parent
commit
1cac534f0f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Shell/Helper/ProgressHelper.php

+ 1 - 1
src/Shell/Helper/ProgressHelper.php

@@ -119,7 +119,7 @@ class ProgressHelper extends Helper
             $bar = str_repeat('=', $barLen - 1) . '>';
         }
 
-        $pad = $this->_width - $numberLen - $barLen;
+        $pad = ceil($this->_width - $numberLen - $barLen);
         if ($pad > 0) {
             $bar .= str_repeat(' ', $pad);
         }