ソースを参照

Merge pull request #3818 from Hellov/master

Duplicate download progress
Jordi Boggiano 10 年 前
コミット
3470cef1f1
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/Composer/Util/RemoteFilesystem.php

+ 1 - 1
src/Composer/Util/RemoteFilesystem.php

@@ -327,7 +327,7 @@ class RemoteFilesystem
                         $progression = round($bytesTransferred / $this->bytesMax * 100);
                     }
 
-                    if ((0 === $progression % 5) && $progression !== $this->lastProgress) {
+                    if ((0 === $progression % 5) && 100 !== $progression && $progression !== $this->lastProgress) {
                         $this->lastProgress = $progression;
                         $this->io->overwriteError("    Downloading: <comment>$progression%</comment>", false);
                     }