From 99250f4f8242d9aaeedf00910800662e4314ce17 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Thu, 12 Sep 2019 15:12:19 +0200 Subject: [PATCH] use a minmal ttl value before warning --- classes/cronlog-renderer.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/cronlog-renderer.class.php b/classes/cronlog-renderer.class.php index 81ad1cb..ff50f52 100644 --- a/classes/cronlog-renderer.class.php +++ b/classes/cronlog-renderer.class.php @@ -91,9 +91,8 @@ class cronlogrenderer extends cronlog{ $iLast=max(array($iLast, date("U", $aEntry['SCRIPTSTARTTIME']))); $aErrors=array(); - $iTtlUsed=min($aEntry['SCRIPTTTL'], $this->_iMinTtl); + $iTtlUsed=max($aEntry['SCRIPTTTL'], $this->_iMinTtl); $iNextRun=$aEntry['SCRIPTSTARTTIME']+((int)$aEntry['SCRIPTTTL']*60); - $iNextRunWarn=$aEntry['SCRIPTSTARTTIME']+((int)$iTtlUsed*60); $iNextRunErr=$aEntry['SCRIPTSTARTTIME']+((int)$this->_iExpiredJobsFailAfter*60); -- GitLab