From 53a0a419dc0f55dfd62223cde0c6db26b58539b4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 9 Jun 2008 06:59:41 +0000 Subject: - Patch #267333: rollback to rounding down, instead of rounding up. --- 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 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, -- cgit v1.2.3