IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29168


Ignore:
Timestamp:
Sep 16, 2010, 2:41:59 PM (16 years ago)
Author:
rhenders
Message:

checking for 0 before taking log; using log base 10 instead of natural log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czartool/CzarDb.pm

    r29161 r29168  
    293293        if ($isLog) {
    294294
    295             $processed = log($processed + 1);
    296             $pending = log($pending + 1);
    297             $faults = log($faults + 1);
     295            if ($processed < 0) {$processed = 0;}
     296            if ($pending < 0) {$pending = 0;}
     297            if ($faults < 0) {$faults = 0;}
     298
     299            $processed = log($processed + 1)/log(10);
     300            $pending = log($pending + 1)/log(10);
     301            $faults = log($faults + 1)/log(10);
    298302        }
    299303
Note: See TracChangeset for help on using the changeset viewer.