From 61366679acb9bb035688aa3bdb8fb945cb8c45f8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 6 Jun 2008 16:53:48 +0000 Subject: - Patch #267333 by cwgordon7: simepletest should round up, not round down. --- includes/batch.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') 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, -- cgit v1.2.3