IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28261


Ignore:
Timestamp:
Jun 8, 2010, 3:28:20 PM (16 years ago)
Author:
rhenders
Message:

Added publishing column

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czartool.pl

    r28165 r28261  
    1818my @stdscienceLabels = `czartool_getLabels.pl -s stdscience`;
    1919my @distributionLabels = `czartool_getLabels.pl -s distribution`;
     20my @publishingLabels = `czartool_getLabels.pl -s publishing`;
    2021
    2122checkAllLabels("new");
     
    215216    my ($state) = @_;
    216217#print time, $/;
    217     printf("\n+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n");
    218     printf("|                                                                           %10s (any faults are shown in parentheses)                                                  |\n", $state);
    219     printf("+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n");
    220     printf("| no  |              label               | distributing? |    chip    |    cam     |    fake    |    warp    |   stack    |    diff    |   magic    |  destreak  |    dist    |\n");
    221     printf("+-----+----------------------------------+---------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+\n");
     218    printf("\n+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n");
     219    printf("|                                                                                  %10s (any faults are shown in parentheses)                                                           |\n", $state);
     220    printf("+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n");
     221    printf("| no  |              label               | distributing? |  publishing?  |    chip    |    cam     |    fake    |    warp    |   stack    |    diff    |   magic    |  destreak  |    dist    |\n");
     222    printf("+-----+----------------------------------+---------------+---------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+\n");
    222223
    223224    my $stdsLabel;
    224225    my $distLabel;
     226    my $pubLabel;
    225227    my $i=1;
    226228    my $distributing;
     229    my $publishing;
    227230    foreach $stdsLabel (@stdscienceLabels) {
    228231
    229     $distributing = 0;
     232        $distributing = 0;
     233        chomp($stdsLabel);
    230234        foreach $distLabel (@distributionLabels) {
    231             chomp($stdsLabel);
    232235            chomp($distLabel);
    233236            if ($stdsLabel eq $distLabel) { $distributing = 1; last;}
    234 
    235 
    236237        }
    237         chomp($stdsLabel);
     238
     239        foreach $pubLabel (@publishingLabels) {
     240            chomp($pubLabel);
     241            if ($stdsLabel eq $pubLabel) { $publishing = 1; last;}
     242        }
     243
    238244        printf("| %3d ", $i);
    239245        printf("| %32s ", $stdsLabel);
    240246        printf("| %10s    ", $distributing ? "yes" : "NO" );
     247        printf("| %10s    ", $publishing ? "yes" : "NO" );
    241248        printf("| %10s ", getStateAndFaults($stdsLabel, "chipRun", $state, "chip"));
    242249        printf("| %10s ", getStateAndFaults($stdsLabel, "camRun", $state, "cam"));
     
    252259    }
    253260
    254     printf("+-----+----------------------------------+---------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+\n");
     261    printf("+-----+----------------------------------+---------------+---------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+\n");
    255262
    256263}
Note: See TracChangeset for help on using the changeset viewer.