IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32068


Ignore:
Timestamp:
Aug 10, 2011, 8:54:44 AM (15 years ago)
Author:
rhenders
Message:

Fixed check for large positive-jumps in processing data - broke it with previous changes

File:
1 edited

Legend:

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

    r31899 r32068  
    679679            $diffFaults = $thisFaults - $lastFaults;
    680680
     681            # First, look for large positive jumps in processed, most likely a label
     682            # added, and store value to subtract from linear value below. If > 1000
     683            # processed per hour, then it must be wrong
     684            if (($thisProcessed - $lastProcessed)/($timeSep/3600) > 1000) {
     685                $positiveJump = $thisProcessed - $lastProcessed;
     686            }
     687            else {
     688
     689                $positiveJump = 0;
     690            }
    681691            # we only count increases in processing - drops are due to cleanup etc
    682692            if ($thisProcessed > $lastProcessed) {
     
    696706            $derivProcessed = $diffProcessed/($timeSep/3600);
    697707
    698             # look for large positive jumps in processed, most likely a label added, and store value to subtract from linear value below
    699             if ($derivProcessed > 1000) {
    700                 $positiveJump = $thisProcessed - $lastProcessed;
    701             }
    702             else {
    703 
    704                 $positiveJump = 0;
    705             }
    706708        }
    707709        # first time in
Note: See TracChangeset for help on using the changeset viewer.