ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/DBTools/scripts/osusub
(Generate patch)

Comparing UserCode/OSUT3Analysis/DBTools/scripts/osusub (file contents):
Revision 1.20 by ahart, Wed Jun 19 13:40:44 2013 UTC vs.
Revision 1.22 by ahart, Tue Jul 9 17:23:14 2013 UTC

# Line 8 | Line 8 | use POSIX;
8   use Term::ANSIColor;
9   use Cwd 'abs_path';
10  
11 + select ((select (STDOUT), $| = 1)[0]);
12 +
13   sub printHelp;
14   sub outputPset;
15   sub outputRunList;
# Line 168 | Line 170 | outputRunList
170      {
171        next if $files[$i] eq ".";
172        next if $files[$i] eq "..";
173 +      next if !($files[$i] =~ m/\.root$/);
174        print RUNLIST "'file:" . abs_path ("$location/$files[$i]") . "'";
175        print RUNLIST "," if $i + 1 != @files;
176        print RUNLIST "\n";
# Line 199 | Line 202 | getLocation
202    if ($results->numrows () == 1)
203      {
204        my @row = $results->fetchrow ();
205 <      return ($row[3], $row[4], $row[5], $row[7]) if $row[7];
206 <      return ($row[3], $row[4], $row[5], $row[6]) if !$row[7];
205 >      $row[7] += 0;
206 >      return ($row[3], $row[4], $row[5], $row[7]) if $row[7] > 0;
207 >      return ($row[3], $row[4], $row[5], $row[6]) if $row[7] <= 0;
208      }
209    if ($results->numrows () == 0)
210      {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines