Changeset 54


Ignore:
Timestamp:
Jan 8, 2008 2:30:10 PM (12 years ago)
Author:
demeler
Message:

If job failed, rss=undef causes an error updating the mysql table. This is fixed.
Not sql errors occur after emailing results so does not cause a job to fail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/etc/us_extract_usage.pl

    r2 r54  
    66    close(RSS);
    77    chomp $maxrss;
     8    $maxrss = 0 if !$maxrss;
    89
    910    open(JT, "grep 'job time' $_[0] | awk '{ print \$4 }' |");
     
    1112    close JT;
    1213    chomp $jobtime;
     14    $jobtime = 0 if !$jobtime;
    1315    $jobtime /= 1000000;
    1416    $extract_usage_title = "maxrss|jobtime";
Note: See TracChangeset for help on using the changeset viewer.