From 33e379e6f3380dc9021a74227c045ed68c7d5f70 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 11 Dec 2012 17:20:12 +0100 Subject: [PATCH] Fixed progress calculation --- .../install/files/lib/system/worker/AbstractWorker.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php b/wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php index 030ad8f555..5a8d49e1ef 100644 --- a/wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php @@ -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); } -- 2.20.1