Changeset 22 for trunk


Ignore:
Timestamp:
08/26/11 12:23:06 (8 years ago)
Author:
mmamonski
Message:

jobs start_time, end_time logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_drmaa/job.c

    r21 r22  
    362362                                        self->exit_status = -1; 
    363363                                } 
    364                                 self->end_time = modify_time; /* take last modify time as end time */ 
     364                                if (modify_time != 0) 
     365                                        self->end_time = modify_time; /* take last modify time as end time */ 
     366                                else 
     367                                        self->end_time = time(NULL); 
     368                                 
     369                                if (self->start_time == 0) 
     370                                        self->start_time = self->end_time; 
     371 
    365372                                break; 
    366373                        case 'E': /* Job is exiting after having run. - MM: ignore exiting state (transient state) - outputs might have not been transfered yet,  
Note: See TracChangeset for help on using the changeset viewer.