Fixed progress calculation
authorMarcel Werk <burntime@woltlab.com>
Thu, 11 Jul 2013 22:04:55 +0000 (00:04 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 11 Jul 2013 22:04:55 +0000 (00:04 +0200)
wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php

index cd22f20046f70b289d56f629736fc3d9e0e7c2bc..a9d501c752bb6f1c2dc93679e74a828d2f6f026f 100644 (file)
@@ -67,7 +67,7 @@ abstract class AbstractWorker implements IWorker {
                
                $progress = (($this->limit * ($this->loopCount + 1)) / $this->count) * 100;
                if ($progress > 100) $progress = 100;
-               return round($progress, 0);
+               return floor($progress, 0);
        }
        
        /**