@@ 95-104 (lines=10) @@ | ||
92 | // Create the table grouped by domain |
|
93 | arsort($total['domain']); |
|
94 | ||
95 | foreach ($total['domain'] as $key => $val) { |
|
96 | if ($totalDuration != 0) { |
|
97 | $percent = round($val / $totalDuration * 100, 1); |
|
98 | } else { |
|
99 | $percent = 100; |
|
100 | } |
|
101 | ||
102 | $roundedDuration = round($val, $this->precision); |
|
103 | $html .= "<tr><td>{$key}</td><td>{$roundedDuration}</td><td>{$percent}</td></tr>"; |
|
104 | } |
|
105 | ||
106 | $html .= "</table><br><table class='logtable'><caption>Duration per area</caption><tr><th>Area</th><th>Duration</th><th>Percent</th></tr>"; |
|
107 | ||
@@ 111-120 (lines=10) @@ | ||
108 | // Create the table grouped by area |
|
109 | arsort($total['where']); |
|
110 | ||
111 | foreach ($total['where'] as $key => $val) { |
|
112 | if ($totalDuration != 0) { |
|
113 | $percent = round($val / $totalDuration * 100, 1); |
|
114 | } else { |
|
115 | $percent = 100; |
|
116 | } |
|
117 | ||
118 | $roundedDuration = round($val, $this->precision); |
|
119 | $html .= "<tr><td>{$key}</td><td>{$roundedDuration}</td><td>{$percent}</td></tr>"; |
|
120 | } |
|
121 | ||
122 | $html .= "</table>"; |
|
123 |