1
0
Fork 0

Merge pull request #4143 from staabm/patch-1

Dropped obsolete condition
pull/4213/head
Jordi Boggiano 2015-07-03 21:48:39 +01:00
commit 9b3e8b963e
1 changed files with 1 additions and 5 deletions

View File

@ -326,11 +326,7 @@ class RemoteFilesystem
case STREAM_NOTIFY_PROGRESS:
if ($this->bytesMax > 0 && $this->progress) {
$progression = 0;
if ($this->bytesMax > 0) {
$progression = round($bytesTransferred / $this->bytesMax * 100);
}
$progression = round($bytesTransferred / $this->bytesMax * 100);
if ((0 === $progression % 5) && 100 !== $progression && $progression !== $this->lastProgress) {
$this->lastProgress = $progression;