IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38213 for trunk/ippMonitor


Ignore:
Timestamp:
Apr 28, 2015, 4:37:58 PM (11 years ago)
Author:
eugene
Message:

there was an implicit limit in the plotting : if rate > 1000 / hr it was thought to be an error

File:
1 edited

Legend:

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

    r38206 r38213  
    685685    $query->execute;
    686686
     687    # print "fromTime: $fromTime, toTime: $toTime\n";
     688
    687689    # set up Gnuplot datafiles
    688690    my $tmpFile = File::Temp->new( TEMPLATE => "czarplot_gnuplot_".$label."_".$stage."_t.XXXXX", DIR => '/tmp', SUFFIX => 'dat');
     
    727729        my ($thisTimestamp, $thisPending, $thisFaults, $thisProcessed) = @row;
    728730
     731        # print "$thisTimestamp, $thisPending, $thisFaults, $thisProcessed\n";
     732
    729733        $formattedTimestamp = $self->getFormattedDate($thisTimestamp);
    730734
     
    743747
    744748            # First, look for large positive jumps in processed, most likely a label
    745             # added, and store value to subtract from linear value below. If > 1000
     749            # added, and store value to subtract from linear value below. If > 5000
    746750            # processed per hour, then it must be wrong
    747             if (($thisProcessed - $lastProcessed)/($timeSep/3600) > 1000) {
     751            if (($thisProcessed - $lastProcessed)/($timeSep/3600) > 5000) {
    748752                $positiveJump = $thisProcessed - $lastProcessed;
    749753            }
     
    763767                $linearProcessed = $linearProcessed;
    764768            }
     769
     770            # print "$thisTimestamp, $thisPending, $thisFaults, $thisProcessed, $timeSep, $diffProcessed, $linearProcessed\n";
    765771
    766772            # calculate first derivative in units of images per hour
Note: See TracChangeset for help on using the changeset viewer.