From ec77e58276b2f40add0eff7275aa57073554acef Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Fri, 16 May 2014 05:02:38 +0000 Subject: [PATCH] Limit the display of the status to the latest 100 runs of the synchro data source. SVN:trunk[3157] --- synchro/synchrodatasource.class.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/synchro/synchrodatasource.class.inc.php b/synchro/synchrodatasource.class.inc.php index 85e257333..fb2bb1b38 100644 --- a/synchro/synchrodatasource.class.inc.php +++ b/synchro/synchrodatasource.class.inc.php @@ -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) {