Changeset 257 for trunk


Ignore:
Timestamp:
2006-10-18T13:18:43+02:00 (8 years ago)
Author:
moo
Message:

coverager: fix -1 problem when XCache is not loaded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coverager/coverager.php

    r185 r257  
    323323        $cov = array(); 
    324324        for (/* empty*/; $i <= $end; $i += 2) { 
    325             $cov[$bytes[$i]] = $bytes[$i + 1]; 
     325            $hits = $bytes[$i + 1]; 
     326            $cov[$bytes[$i]] = $hits <= 0 ? 0 : $hits; 
    326327        } 
    327328        return $cov; 
Note: See TracChangeset for help on using the changeset viewer.