Changeset 768


Ignore:
Timestamp:
03/28/13 16:30:59 (9 years ago)
Author:
ramonb
Message:
  • set rjqj start to default 1 day if only queued jobs in view
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.4/web/addons/job_monarch/overview.php

    r764 r768  
    905905        {
    906906            $rjqj_end = time();
     907
     908            if( $rjqj_start == null )
     909            { // probably no running jobs in this view: only queued
     910                $rjqj_start = $rjqj_end - (24 * 3600); // default to 1 day
     911            }
    907912            $rjqj_title = rawurlencode( makeTime( ($rjqj_end - $rjqj_start) ) );
    908913            $rjqj_graphargs .= "&period_start=$rjqj_start&period_stop=$rjqj_end&t=$rjqj_title";
Note: See TracChangeset for help on using the changeset viewer.