Free cookie consent management tool by TermsFeed Policy Generator

Changeset 946


Ignore:
Timestamp:
12/10/08 14:57:31 (16 years ago)
Author:
kgrading
Message:

fixed the heartbeat (#346)

File:
1 edited

Legend:

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

    r932 r946  
    3030using HeuristicLab.Hive.Contracts.BusinessObjects;
    3131using HeuristicLab.Hive.Contracts;
     32using HeuristicLab.Hive.Client.Core.ConfigurationManager;
    3233//using BO = HeuristicLab.Hive.Contracts.BusinessObjects;
    3334
     
    7071    void heartbeatTimer_Elapsed(object sender, ElapsedEventArgs e) {
    7172      Console.WriteLine("tick");
    72       HeartBeatData heartBeatData = new HeartBeatData { ClientId = Guid.NewGuid(),
    73                                                               freeCores = 4,
     73      ClientInfo info = ConfigManager.Instance.GetClientInfo();
     74      HeartBeatData heartBeatData = new HeartBeatData { ClientId = info.ClientId,
     75                                                              freeCores = info.NrOfCores,
    7476                                                              freeMemory = 1000,
    75                                                               jobProgress = 1};
     77                                                              jobProgress = ClientStatusInfo.JobsFetched - ClientStatusInfo.JobsProcessed};
    7678      if (wcfService.ConnState == NetworkEnum.WcfConnState.Failed) {
    7779        wcfService.Connect();
Note: See TracChangeset for help on using the changeset viewer.