Index: trunk/phase3/includes/profiler/ProfilerSimpleText.php |
— | — | @@ -45,7 +45,8 @@ |
46 | 46 | } |
47 | 47 | |
48 | 48 | static function format( $item, $key, $totalReal ) { |
| 49 | + $perc = $totalReal ? $item['real']/$totalReal*100 : 0; |
49 | 50 | self::$out .= sprintf( "%6.2f%% %3.6f %6d - %s\n", |
50 | | - $item['real']/$totalReal*100, $item['real'], $item['count'], $key ); |
| 51 | + $perc, $item['real'], $item['count'], $key ); |
51 | 52 | } |
52 | 53 | } |