We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71b67e6 commit f0a7c6dCopy full SHA for f0a7c6d
src/DataCollector/CacheDataCollector.php
@@ -145,7 +145,7 @@ private function calculateStatistics()
145
}
146
147
if ($statistics[$name]['reads']) {
148
- $statistics[$name]['ratio'] = 100 * $statistics[$name]['hits'] / $statistics[$name]['reads'].'%';
+ $statistics[$name]['ratio'] = round(100 * $statistics[$name]['hits'] / $statistics[$name]['reads'], 2).'%';
149
} else {
150
$statistics[$name]['ratio'] = 'N/A';
151
@@ -167,7 +167,7 @@ private function calculateTotalStatistics()
167
168
169
if ($totals['reads']) {
170
- $totals['ratio'] = 100 * $totals['hits'] / $totals['reads'].'%';
+ $totals['ratio'] = round(100 * $totals['hits'] / $totals['reads'], 2).'%';
171
172
$totals['ratio'] = 'N/A';
173
0 commit comments