IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28162


Ignore:
Timestamp:
May 28, 2010, 1:45:41 PM (16 years ago)
Author:
rhenders
Message:

Improved formatting for single label display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czartool.pl

    r28161 r28162  
    1111use File::Temp qw(tempfile);
    1212
    13 my @states = ("full", "new", "drop", "wait", "fault");
     13my @states = ("full", "new", "drop", "wait");
    1414my $db = connectToDb();
    1515
     
    190190        chomp($label);
    191191        printf("| %10s ", $state);
    192         printf("| %5d ", checkLabel($label, "chipRun", $state, "chip"));
    193         printf("| %5d ", checkLabel($label, "camRun", $state, "cam"));
    194         printf("| %5d ", checkLabel($label, "fakeRun", $state, "fake"));
    195         printf("| %5d ", checkLabel($label, "warpRun", $state, "warp"));
    196         printf("| %5d ", checkLabel($label, "stackRun", $state, "stack"));
    197         printf("| %5d ", checkLabel($label, "diffRun", $state, "diff"));
    198         printf("| %5d ", checkLabel($label, "magicRun", $state, "magic"));
    199         printf("| %6d ", checkLabel($label, "magicDSRun", $state, "magicDS"));
    200         printf("| %5d ", checkLabel($label, "distRun", $state, "dist"));
     192        printf("| %5s ", getStateAndFaults($label, "chipRun", $state, "chip"));
     193        printf("| %5s ", getStateAndFaults($label, "camRun", $state, "cam"));
     194        printf("| %5s ", getStateAndFaults($label, "fakeRun", $state, "fake"));
     195        printf("| %5s ", getStateAndFaults($label, "warpRun", $state, "warp"));
     196        printf("| %5s ", getStateAndFaults($label, "stackRun", $state, "stack"));
     197        printf("| %5s ", getStateAndFaults($label, "diffRun", $state, "diff"));
     198        printf("| %5s ", getStateAndFaults($label, "magicRun", $state, "magic"));
     199        printf("| %6s ", getStateAndFaults($label, "magicDSRun", $state, "magicDS"));
     200        printf("| %5s ", getStateAndFaults($label, "distRun", $state, "dist"));
    201201        printf("|\n");
    202202        $i++;
Note: See TracChangeset for help on using the changeset viewer.