From cd60d017ea7ed7b01c7c67373df5f24542ac9516 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 27 Dec 2006 22:40:16 +0000 Subject: [PATCH] get_performance_info(): fixup rcache stats 0 cache misses is valid and probably a good score ;-) --- lib/moodlelib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 118bf495dad..48a3f8933d3 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -6536,9 +6536,9 @@ function get_performance_info() { $info['rcachehits'] = $rcache->hits; $info['rcachemisses'] = $rcache->misses; $info['html'] .= 'Record cache hit/miss ratio : '. - ($rcache->hits / $rcache->misses) . "({$rcache->hits}/{$rcache->misses}) "; - $info['txt'] .= 'rcache: '. ($rcache->hits / $rcache->misses) . - "({$rcache->hits}/{$rcache->misses}) "; + "{$rcache->hits}/{$rcache->misses} "; + $info['txt'] .= 'rcache: '. + "{$rcache->hits}/{$rcache->misses} "; } $info['html'] = '
'.$info['html'].'
'; return $info;