diff --git a/classes/cronlog-renderer.class.php b/classes/cronlog-renderer.class.php index ff50f52e3f5d2ab4ffaa62fa37c9b64c8096dad9..6111baa5ca9d58889cfcdfe60af4133f0a1509c9 100644 --- a/classes/cronlog-renderer.class.php +++ b/classes/cronlog-renderer.class.php @@ -97,10 +97,10 @@ class cronlogrenderer extends cronlog{ $iNextRunErr=$aEntry['SCRIPTSTARTTIME']+((int)$this->_iExpiredJobsFailAfter*60); if($iNextRunErr < date("U")){ - $aErrors[]='outdated'; + $aErrors[]='outdated since ' . date("Y-m-d H:i", $iNextRunErr) . ' (+'.$this->_iExpiredJobsFailAfter.'min)'; } if($aEntry['SCRIPTRC']>0){ - $aErrors[]='exitcode is <>0'; + $aErrors[]='exitcode is '.$aEntry['SCRIPTRC'].' (<>0)'; } if(!$aEntry['SCRIPTLABEL']){ $aErrors[]='no label?'; @@ -109,10 +109,8 @@ class cronlogrenderer extends cronlog{ if(count($aErrors)){ $iErrors++; - $sClass='message-error'; } else { $iOK++; - $sClass='message-ok'; } $sHtml.='<tr onclick="showFile(\''.$aEntry['logfile'].'\');" title="Klick=['.$aEntry['logfile'].'] anzeigen ">' @@ -138,7 +136,7 @@ class cronlogrenderer extends cronlog{ ? ($iNextRunErr < date("U") ? 'message-error' : 'message-warning') : '' ).'">' . date("Y-m-d H:i", $iNextRun).'</td>' - . '<td class="'.(count($aErrors) ? 'message-error' : '' ).'">' + . '<td'.(count($aErrors) ? ' class="message-error" title="'.implode("\n", $aErrors).'"' : '' ).'>' // .(count($aErrors) ? 'FEHLER:<br>*'.implode('<br>*', $aErrors) : 'OK').'</td>' .(count($aErrors) ? 'FEHLER' : 'OK').'</td>' // . '<td><button onclick="showFile(\''.$aEntry['logfile'].'\');">Ansehen</button></td>'