Changeset 29059 for trunk/tools/roboczar.pl
- Timestamp:
- Aug 25, 2010, 3:58:34 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/roboczar.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/roboczar.pl
r28926 r29059 12 12 use czartool::Nebulous; 13 13 use czartool::Czarplot; 14 use czartool::Burntool; 14 15 15 16 my $period = 60; … … 27 28 my $pantasks = new czartool::Pantasks(); 28 29 my $czarplot = new czartool::Czarplot($czarDb, "%Y%m%d-%H%M%S", "png font \"/usr/share/fonts/corefonts/arial.ttf\" 8", "/tmp", $save_temps); # TODO hardcoded font path 30 my $burntool = new czartool::Burntool(); 31 29 32 $czarDb->setDateFormat("%Y%m%d-%H%i%s"); 30 33 31 my @stages = (" chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist");34 my @stages = ("burntool", "chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist"); 32 35 33 36 … … 105 108 106 109 # sort out times 107 $begin = strftime('%Y-%m-%d 0 7:00',localtime);110 $begin = strftime('%Y-%m-%d 06:30',localtime); 108 111 $end = $czarDb->getNowTimestamp(); 109 112 … … 233 236 chomp($label); 234 237 235 $new = $gpc1Db->countExposures($label, $stage, $newState); 236 $full = $gpc1Db->countExposures($label, $stage, "full"); 237 $faults = $gpc1Db->countFaults($label, $stage, $newState); 238 238 if ($stage eq "burntool") { 239 240 if ($labelServer eq "stdscience") { 241 242 $burntool->getPendingAndProcessed($label, \$new, \$full); 243 $faults = 0; 244 } 245 else { $new = $full = $faults = 0;} 246 } 247 else { 248 249 $new = $gpc1Db->countExposures($label, $stage, $newState); 250 $full = $gpc1Db->countExposures($label, $stage, "full"); 251 $faults = $gpc1Db->countFaults($label, $stage, $newState); 252 } 239 253 #printf("%s %s, %s, %d, %d\n", $labelServer, $label, $stage, $new, $faults); 240 254 $totalNew += $new;
Note:
See TracChangeset
for help on using the changeset viewer.
