瀏覽代碼

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3157 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 年之前
父節點
當前提交
1fe1a03719
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      synchro/synchrodatasource.class.inc.php

+ 1 - 0
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)
 		{