Changeset 243


Ignore:
Timestamp:
04/07/06 17:31:25 (18 years ago)
Author:
bastiaans
Message:

jobmond/jobmond.py:

  • added queued_timestamp

web/addons/job_monarch/overview.php:

  • fixed typo in queued since assignment
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobmond/jobmond.py

    r228 r243  
    287287                        status = self.getAttr( attrs, 'job_state' )
    288288
     289                        queued_timestamp = self.getAttr( attrs, 'ctime' )
     290                        print queued_timestamp
     291
    289292                        if status == 'R':
    290293                                start_timestamp = self.getAttr( attrs, 'mtime' )
     
    355358                        myAttrs['status'] = status
    356359                        myAttrs['start_timestamp'] = start_timestamp
     360                        myAttrs['queued_timestamp'] = queued_timestamp
    357361                        myAttrs['reported'] = str( int( int( self.cur_time ) + int( self.timeoffset ) ) )
    358362                        myAttrs['nodes'] = nodeslist
     
    421425                if jobattrs['start_timestamp'] != '':
    422426                        appendList.append( 'start_timestamp=' + jobattrs['start_timestamp'] )
     427                       
     428                if jobattrs['queued_timestamp'] != '':
     429                        appendList.append( 'queued_timestamp=' + jobattrs['queued_timestamp'] )
    423430
    424431                appendList.append( 'reported=' + jobattrs['reported'] )
  • trunk/web/addons/job_monarch/overview.php

    r242 r243  
    615615                                if( $COLUMN_QUEUED ) {
    616616                                        $tpl->newBlock( "column_queued" );
    617                                         $tpl->assign( "queued", $jobs[$jobid][queued] );
     617                                        $tpl->assign( "queued", makeDate( $jobs[$jobid][queued_timestamp] ) );
    618618                                        $tpl->gotoBlock( "node" );
    619619                                }
Note: See TracChangeset for help on using the changeset viewer.