Limit the display of the status to the latest 100 runs of the synchro data source.

SVN:trunk[3157]
This commit is contained in:
Denis Flaven
2014-05-16 05:02:38 +00:00
parent 196fba7d81
commit ec77e58276

View File

@@ -230,6 +230,7 @@ class SynchroDataSource extends cmdbAbstractObject
$sSelectSynchroLog = 'SELECT SynchroLog WHERE sync_source_id = :source_id';
$oSetSynchroLog = new CMDBObjectSet(DBObjectSearch::FromOQL($sSelectSynchroLog), array('start_date' => false) /* order by*/, array('source_id' => $this->GetKey()));
$oSetSynchroLog->SetLimit(100); // Display only the 100 latest runs
if ($oSetSynchroLog->Count() > 0)
{