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

use a minmal ttl value before warning

parent 435ffe51
Branches
No related tags found
No related merge requests found
...@@ -91,9 +91,8 @@ class cronlogrenderer extends cronlog{ ...@@ -91,9 +91,8 @@ class cronlogrenderer extends cronlog{
$iLast=max(array($iLast, date("U", $aEntry['SCRIPTSTARTTIME']))); $iLast=max(array($iLast, date("U", $aEntry['SCRIPTSTARTTIME'])));
$aErrors=array(); $aErrors=array();
$iTtlUsed=min($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)$this->_iExpiredJobsFailAfter*60);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment