Skip to content

Commit

Permalink
Fix misses calculation when calling getItems
Browse files Browse the repository at this point in the history
  • Loading branch information
fsevestre committed May 10, 2018
1 parent 40bcd77 commit 3d1ab6d
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -132,10 +132,9 @@ private function calculateStatistics()
$statistics[$name]['misses'] += 1;
}
} elseif ('getItems' === $call->name) {
$count = $call->hits + $call->misses;
$statistics[$name]['reads'] += $count;
$statistics[$name]['reads'] += $call->hits + $call->misses;
$statistics[$name]['hits'] += $call->hits;
$statistics[$name]['misses'] += $count - $call->misses;
$statistics[$name]['misses'] += $call->misses;
} elseif ('hasItem' === $call->name) {
$statistics[$name]['reads'] += 1;
if (false === $call->result) {
Expand Down

0 comments on commit 3d1ab6d

Please sign in to comment.