Changeset 360 for trunk


Ignore:
Timestamp:
06/08/07 15:56:35 (17 years ago)
Author:
bastiaans
Message:

jobarchived/jobarchived.py:

  • fixed possible bug of incorrect stop_timestamping in archive
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobarchived/jobarchived.py

    r324 r360  
    649649
    650650                                        self.jobAttrs[ jobid ]['status'] = 'F'
    651                                         self.jobAttrs[ jobid ]['stop_timestamp'] = str( mytime )
     651                                        self.jobAttrs[ jobid ]['stop_timestamp'] = str( self.heartbeat )
    652652
    653653                                        if not jobid in self.jobs_to_store:
     
    701701
    702702                                                        if jobinfo['reported'] > jobattrs[ jobid ][ 'reported' ] and jobinfo['reported'] == self.heartbeat:
    703                                                                 return 1
     703                                                                return True
    704704
    705705                                        else:
    706                                                 return 1
    707 
    708                 return 0
     706                                                return True
     707
     708                return False
    709709
    710710class GangliaXMLHandler( xml.sax.handler.ContentHandler ):
Note: See TracChangeset for help on using the changeset viewer.