diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-06-09 06:59:41 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-06-09 06:59:41 +0000 |
commit | 53a0a419dc0f55dfd62223cde0c6db26b58539b4 (patch) | |
tree | 9d500c202670be6c0c44db2a7badfb99372a9aff | |
parent | 76aedbefe05d9f5b8aad9573635a07045efa392a (diff) | |
download | brdo-53a0a419dc0f55dfd62223cde0c6db26b58539b4.tar.gz brdo-53a0a419dc0f55dfd62223cde0c6db26b58539b4.tar.bz2 |
- Patch #267333: rollback to rounding down, instead of rounding up.
-rw-r--r-- | includes/batch.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/batch.inc b/includes/batch.inc index 39490e609..798d2b3eb 100644 --- a/includes/batch.inc +++ b/includes/batch.inc @@ -236,7 +236,7 @@ function _batch_process() { } $current = $total - $remaining + $finished; - $percentage = $total ? round($current / $total * 100) : 100; + $percentage = $total ? floor($current / $total * 100) : 100; $values = array( '@remaining' => $remaining, '@total' => $total, |