summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-06 16:53:48 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-06 16:53:48 +0000
commit61366679acb9bb035688aa3bdb8fb945cb8c45f8 (patch)
tree24d4abacbb19bf96e223936e143e297259664348
parent5c9d4b9c97ad4097676bd1da4c4467dc7f2e8125 (diff)
downloadbrdo-61366679acb9bb035688aa3bdb8fb945cb8c45f8.tar.gz
brdo-61366679acb9bb035688aa3bdb8fb945cb8c45f8.tar.bz2
- Patch #267333 by cwgordon7: simepletest should round up, not round down.
-rw-r--r--includes/batch.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/batch.inc b/includes/batch.inc
index 798d2b3eb..39490e609 100644
--- a/includes/batch.inc
+++ b/includes/batch.inc
@@ -236,7 +236,7 @@ function _batch_process() {
}
$current = $total - $remaining + $finished;
- $percentage = $total ? floor($current / $total * 100) : 100;
+ $percentage = $total ? round($current / $total * 100) : 100;
$values = array(
'@remaining' => $remaining,
'@total' => $total,