From 5efb849f6d48a8d0fb294c25ed1328d6fad1275c Mon Sep 17 00:00:00 2001 From: kanoi Date: Sun, 2 Aug 2015 20:23:33 +1000 Subject: [PATCH] php - make block diff% 3 decimal places --- pool/page_blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool/page_blocks.php b/pool/page_blocks.php index 6582ee96..706e3a78 100644 --- a/pool/page_blocks.php +++ b/pool/page_blocks.php @@ -204,7 +204,7 @@ function doblocks($data, $user) { $pct = 100.0 * $diffratio; list($fg, $bg) = pctcolour($pct); - $bpct = "$approx".number_format($pct, 2).'%'; + $bpct = "$approx".number_format($pct, 3).'%'; $bg = " bgcolor=$bg"; $blktot += $diffacc; if ($stat != 'Orphan')