Permalink
Browse files

get_performance_info(): fixup rcache stats

0 cache misses is valid and probably a good score ;-)
  • Loading branch information...
1 parent 6c2f585 commit cd60d017ea7ed7b01c7c67373df5f24542ac9516 martinlanghoff committed Dec 27, 2006
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/moodlelib.php
View
6 lib/moodlelib.php
@@ -6536,9 +6536,9 @@ function get_performance_info() {
$info['rcachehits'] = $rcache->hits;
$info['rcachemisses'] = $rcache->misses;
$info['html'] .= '<span class="rcache">Record cache hit/miss ratio : '.
- ($rcache->hits / $rcache->misses) . "({$rcache->hits}/{$rcache->misses})</span> ";
- $info['txt'] .= 'rcache: '. ($rcache->hits / $rcache->misses) .
- "({$rcache->hits}/{$rcache->misses}) ";
+ "{$rcache->hits}/{$rcache->misses}</span> ";
+ $info['txt'] .= 'rcache: '.
+ "{$rcache->hits}/{$rcache->misses} ";
}
$info['html'] = '<div class="performanceinfo">'.$info['html'].'</div>';
return $info;

0 comments on commit cd60d01

Please sign in to comment.