mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 09:08:42 +02:00
#995 Make sure that tto/ttr passed gets set even if the CRON has not been run (and as soon as some overrun has been counted)
SVN:trunk[3384]
This commit is contained in:
@@ -130,6 +130,10 @@ class ormStopWatch
|
||||
{
|
||||
$bRet = true;
|
||||
}
|
||||
if (isset($aThresholdData['overrun']) && ($aThresholdData['overrun'] > 0))
|
||||
{
|
||||
$bRet = true;
|
||||
}
|
||||
}
|
||||
return $bRet;
|
||||
}
|
||||
@@ -160,6 +164,7 @@ class ormStopWatch
|
||||
$aDefs = $this->aThresholds[$iPercent];
|
||||
if (array_key_exists('highlight', $aDefs) && is_array($aDefs['highlight']) && $this->IsThresholdPassed($iPercent))
|
||||
{
|
||||
// If persistant or SW running...
|
||||
if (($aDefs['highlight']['persistent'] == true) || (($aDefs['highlight']['persistent'] == false) && !is_null($this->iLastStart)))
|
||||
{
|
||||
$sCode = $aDefs['highlight']['code'];
|
||||
|
||||
@@ -251,7 +251,7 @@
|
||||
</field>
|
||||
<field id="sla_tto_passed" xsi:type="AttributeSubItem">
|
||||
<target_attcode>tto</target_attcode>
|
||||
<item_code>100_triggered</item_code>
|
||||
<item_code>100_passed</item_code>
|
||||
</field>
|
||||
<field id="sla_tto_over" xsi:type="AttributeSubItem">
|
||||
<target_attcode>tto</target_attcode>
|
||||
@@ -263,7 +263,7 @@
|
||||
</field>
|
||||
<field id="sla_ttr_passed" xsi:type="AttributeSubItem">
|
||||
<target_attcode>ttr</target_attcode>
|
||||
<item_code>100_triggered</item_code>
|
||||
<item_code>100_passed</item_code>
|
||||
</field>
|
||||
<field id="sla_ttr_over" xsi:type="AttributeSubItem">
|
||||
<target_attcode>ttr</target_attcode>
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
</field>
|
||||
<field id="sla_tto_passed" xsi:type="AttributeSubItem">
|
||||
<target_attcode>tto</target_attcode>
|
||||
<item_code>100_triggered</item_code>
|
||||
<item_code>100_passed</item_code>
|
||||
</field>
|
||||
<field id="sla_tto_over" xsi:type="AttributeSubItem">
|
||||
<target_attcode>tto</target_attcode>
|
||||
@@ -274,7 +274,7 @@
|
||||
</field>
|
||||
<field id="sla_ttr_passed" xsi:type="AttributeSubItem">
|
||||
<target_attcode>ttr</target_attcode>
|
||||
<item_code>100_triggered</item_code>
|
||||
<item_code>100_passed</item_code>
|
||||
</field>
|
||||
<field id="sla_ttr_over" xsi:type="AttributeSubItem">
|
||||
<target_attcode>ttr</target_attcode>
|
||||
|
||||
@@ -283,7 +283,7 @@
|
||||
</field>
|
||||
<field id="sla_tto_passed" xsi:type="AttributeSubItem">
|
||||
<target_attcode>tto</target_attcode>
|
||||
<item_code>100_triggered</item_code>
|
||||
<item_code>100_passed</item_code>
|
||||
</field>
|
||||
<field id="sla_tto_over" xsi:type="AttributeSubItem">
|
||||
<target_attcode>tto</target_attcode>
|
||||
@@ -295,7 +295,7 @@
|
||||
</field>
|
||||
<field id="sla_ttr_passed" xsi:type="AttributeSubItem">
|
||||
<target_attcode>ttr</target_attcode>
|
||||
<item_code>100_triggered</item_code>
|
||||
<item_code>100_passed</item_code>
|
||||
</field>
|
||||
<field id="sla_ttr_over" xsi:type="AttributeSubItem">
|
||||
<target_attcode>ttr</target_attcode>
|
||||
|
||||
Reference in New Issue
Block a user