IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32064


Ignore:
Timestamp:
Aug 9, 2011, 4:07:06 PM (15 years ago)
Author:
rhenders
Message:

using new Gpc1Db method to get count of registered exposures rather than call slow burntool script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czarpoll.pl

    r31901 r32064  
    1919use czartool::Nebulous;
    2020use czartool::Plotter;
    21 use czartool::Burntool;
    2221use czartool::DayMetrics;
    2322use czartool::MetricsIndex;
     
    3635my $pantasks = new czartool::Pantasks();
    3736my $plotter = czartool::Plotter->new_file($config, "/tmp", $save_temps);
    38 my $burntool = new czartool::Burntool();
    3937
    4038
     
    273271    $plotter->createRateHistogram($allServerLabels, undef, $begin, $end, undef);
    274272    $plotter->createHistogram($allServerLabels, $begin, $end);
     273
    275274    foreach $stage (@stages) {
    276275
     
    300299    my $server = undef;
    301300    my $state = undef;
     301    my $today = strftime('%Y-%m-%d', localtime);
    302302
    303303    foreach $stage (@stages) {
     
    317317            if ($stage eq "burntool") {
    318318
     319                $new = $full = $faults = 0;
    319320                if ($labelServer eq "stdscience") {
    320321
    321                     $burntool->getPendingAndProcessed($label, \$new, \$full);
    322                     $faults = 0;
     322                    $full = $gpc1Db->countRegisteredExposures($label, $today);
    323323                }
    324                 else { $new = $full = $faults = 0;}
    325324            }
    326325            else {
Note: See TracChangeset for help on using the changeset viewer.