1
0
Fork 0

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 2006-10-18 11:18:43 +00:00
parent 91788e7b9a
commit 83aa3950ec
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}