Changeset 28261
- Timestamp:
- Jun 8, 2010, 3:28:20 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/czartool.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czartool.pl
r28165 r28261 18 18 my @stdscienceLabels = `czartool_getLabels.pl -s stdscience`; 19 19 my @distributionLabels = `czartool_getLabels.pl -s distribution`; 20 my @publishingLabels = `czartool_getLabels.pl -s publishing`; 20 21 21 22 checkAllLabels("new"); … … 215 216 my ($state) = @_; 216 217 #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"); 222 223 223 224 my $stdsLabel; 224 225 my $distLabel; 226 my $pubLabel; 225 227 my $i=1; 226 228 my $distributing; 229 my $publishing; 227 230 foreach $stdsLabel (@stdscienceLabels) { 228 231 229 $distributing = 0; 232 $distributing = 0; 233 chomp($stdsLabel); 230 234 foreach $distLabel (@distributionLabels) { 231 chomp($stdsLabel);232 235 chomp($distLabel); 233 236 if ($stdsLabel eq $distLabel) { $distributing = 1; last;} 234 235 236 237 } 237 chomp($stdsLabel); 238 239 foreach $pubLabel (@publishingLabels) { 240 chomp($pubLabel); 241 if ($stdsLabel eq $pubLabel) { $publishing = 1; last;} 242 } 243 238 244 printf("| %3d ", $i); 239 245 printf("| %32s ", $stdsLabel); 240 246 printf("| %10s ", $distributing ? "yes" : "NO" ); 247 printf("| %10s ", $publishing ? "yes" : "NO" ); 241 248 printf("| %10s ", getStateAndFaults($stdsLabel, "chipRun", $state, "chip")); 242 249 printf("| %10s ", getStateAndFaults($stdsLabel, "camRun", $state, "cam")); … … 252 259 } 253 260 254 printf("+-----+----------------------------------+---------------+------------ +------------+------------+------------+------------+------------+------------+------------+------------+\n");261 printf("+-----+----------------------------------+---------------+---------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+\n"); 255 262 256 263 }
Note:
See TracChangeset
for help on using the changeset viewer.
