Changeset 4121 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/DefaultScheduler.cs
- Timestamp:
- 07/30/10 13:56:28 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/DefaultScheduler.cs
r4116 r4121 26 26 public bool ExistsJobForClient(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) { 27 27 List<JobDto> allOfflineJobsForClient = 28 new List<JobDto>(DaoLocator.JobDao.FindFittingJobsForClient(State.Offline, hbData.FreeCores, hbData.FreeMemory, 29 hbData.ClientId)); 28 new List<JobDto>(DaoLocator.JobDao.FindFittingJobsForClient(State.Offline, hbData.FreeCores, hbData.FreeMemory, hbData.ClientId)); 30 29 return (allOfflineJobsForClient != null && allOfflineJobsForClient.Count > 0); 31 30 } … … 38 37 ClientDto client = DaoLocator.ClientDao.FindById(clientId); 39 38 LinkedList<JobDto> allOfflineJobsForClient = 40 new LinkedList<JobDto>(DaoLocator.JobDao.FindFittingJobsForClient(State.Offline, client.NrOfFreeCores, 41 client.FreeMemory, client.Id)); 39 new LinkedList<JobDto>(DaoLocator.JobDao.FindFittingJobsForClient(State.Offline, client.NrOfFreeCores, client.FreeMemory, client.Id)); 42 40 if (allOfflineJobsForClient != null && allOfflineJobsForClient.Count > 0) { 43 41 jobToCalculate = allOfflineJobsForClient.First.Value;
Note: See TracChangeset
for help on using the changeset viewer.