summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-09 06:59:41 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-09 06:59:41 +0000
commit53a0a419dc0f55dfd62223cde0c6db26b58539b4 (patch)
tree9d500c202670be6c0c44db2a7badfb99372a9aff
parent76aedbefe05d9f5b8aad9573635a07045efa392a (diff)
downloadbrdo-53a0a419dc0f55dfd62223cde0c6db26b58539b4.tar.gz
brdo-53a0a419dc0f55dfd62223cde0c6db26b58539b4.tar.bz2
- Patch #267333: rollback to rounding down, instead of rounding up.
-rw-r--r--includes/batch.inc2
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,