Skip to content
Snippets Groups Projects
Commit 42e86710 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

use a minmal ttl value before warning

parent db0004b9
No related branches found
No related tags found
No related merge requests found
...@@ -94,7 +94,7 @@ class cronlogrenderer extends cronlog{ ...@@ -94,7 +94,7 @@ class cronlogrenderer extends cronlog{
$iTtlUsed=max($aEntry['SCRIPTTTL'], $this->_iMinTtl); $iTtlUsed=max($aEntry['SCRIPTTTL'], $this->_iMinTtl);
$iNextRun=$aEntry['SCRIPTSTARTTIME']+((int)$aEntry['SCRIPTTTL']*60); $iNextRun=$aEntry['SCRIPTSTARTTIME']+((int)$aEntry['SCRIPTTTL']*60);
$iNextRunWarn=$aEntry['SCRIPTSTARTTIME']+((int)$iTtlUsed*60); $iNextRunWarn=$aEntry['SCRIPTSTARTTIME']+((int)$iTtlUsed*60);
$iNextRunErr=$aEntry['SCRIPTSTARTTIME']+((int)$this->_iExpiredJobsFailAfter*60); $iNextRunErr=$aEntry['SCRIPTSTARTTIME']+((int)$aEntry['SCRIPTTTL']+(int)$this->_iExpiredJobsFailAfter*60);
if($iNextRunErr < date("U")){ if($iNextRunErr < date("U")){
$aErrors[]='outdated since ' . date("Y-m-d H:i", $iNextRunErr) . ' (+'.$this->_iExpiredJobsFailAfter.'min)'; $aErrors[]='outdated since ' . date("Y-m-d H:i", $iNextRunErr) . ' (+'.$this->_iExpiredJobsFailAfter.'min)';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment