Browse Source

coverager: fix -1 problem when XCache is not loaded

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@257 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 15 years ago
parent
commit
83aa3950ec
  1. 3
      coverager/coverager.php

3
coverager/coverager.php

@ -322,7 +322,8 @@ if (!function_exists('xcache_coverager_decode')) {
$end = count($bytes);
$cov = array();
for (/* empty*/; $i <= $end; $i += 2) {
$cov[$bytes[$i]] = $bytes[$i + 1];
$hits = $bytes[$i + 1];
$cov[$bytes[$i]] = $hits <= 0 ? 0 : $hits;
}
return $cov;
}

Loading…
Cancel
Save