coverager: fix -1 problem when XCache is not loaded
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@257 c26eb9a1-5813-0410-bd6c-c2e55f420ca71.2
parent
91788e7b9a
commit
83aa3950ec
|
@ -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…
Reference in New Issue