Changeset 257 in svn for trunk/coverager/coverager.php


Ignore:
Timestamp:
2006-10-18T13:18:43+02:00 (9 years ago)
Author:
Xuefer
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.