Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/14/09 16:03:50 (16 years ago)
Author:
kgrading
Message:

corrected the progress calculation (#457)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Core/Heartbeat.cs

    r1097 r1119  
    7474      ClientInfo info = ConfigManager.Instance.GetClientInfo();
    7575      // Todo: remove tempfix for free cores.
    76       // TODO: change jobProgress from int to Dictionary of Job and Double
    77       HeartBeatData heartBeatData = new HeartBeatData { ClientId = info.ClientId,
    78                                                               freeCores = info.NrOfCores - (ClientStatusInfo.JobsFetched - ClientStatusInfo.JobsProcessed),
    79                                                               freeMemory = 1000,
    80                                                               jobProgress = ClientStatusInfo.JobsFetched - ClientStatusInfo.JobsProcessed};
     76
     77      HeartBeatData heartBeatData = new HeartBeatData {
     78        ClientId = info.ClientId,
     79        freeCores = info.NrOfCores - (ClientStatusInfo.JobsFetched - ClientStatusInfo.JobsProcessed),
     80        freeMemory = 1000,
     81        jobProgress = ConfigManager.Instance.GetProgressOfAllJobs()
     82      };
    8183      if (wcfService.ConnState == NetworkEnum.WcfConnState.Failed) {
    8284        wcfService.Connect();
Note: See TracChangeset for help on using the changeset viewer.