Fixed progress calculation
authorMarcel Werk <burntime@woltlab.com>
Tue, 11 Dec 2012 16:20:12 +0000 (17:20 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 11 Dec 2012 16:20:12 +0000 (17:20 +0100)
wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php

index 030ad8f5553e154f44de8a8b718afae18a20a39d..5a8d49e1ef970237e32ab6f66428c2e14d51db30 100644 (file)
@@ -66,6 +66,7 @@ abstract class AbstractWorker implements IWorker {
                }
                
                $progress = (($this->limit * ($this->loopCount + 1)) / $this->count) * 100;
+               if ($progress > 100) $progress = 100;
                return round($progress, 0);
        }