- Timestamp:
- 03/19/09 17:05:34 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Core/ClientCommunicator.cs
r1365 r1368 190 190 response.Success = true; 191 191 response.StatusMessage = ApplicationConstants.RESPONSE_COMMUNICATOR_HEARTBEAT_RECEIVED; 192 if (hbData. freeCores > 0 && scheduler.ExistsJobForClient(hbData))192 if (hbData.FreeCores > 0 && scheduler.ExistsJobForClient(hbData)) 193 193 response.ActionRequest.Add(new MessageContainer(MessageContainer.MessageType.FetchJob)); 194 194 else 195 195 response.ActionRequest.Add(new MessageContainer(MessageContainer.MessageType.NoMessage)); 196 196 197 if (hbData. jobProgress != null) {197 if (hbData.JobProgress != null) { 198 198 List<Job> jobsOfClient = new List<Job>(jobAdapter.GetActiveJobsOf(clientAdapter.GetById(hbData.ClientId))); 199 199 if (jobsOfClient == null || jobsOfClient.Count == 0) { … … 203 203 } 204 204 205 foreach (KeyValuePair<long, double> jobProgress in hbData. jobProgress) {205 foreach (KeyValuePair<long, double> jobProgress in hbData.JobProgress) { 206 206 Job curJob = jobAdapter.GetById(jobProgress.Key); 207 207 if (curJob.Client == null || curJob.Client.ClientId != hbData.ClientId) {
Note: See TracChangeset
for help on using the changeset viewer.