Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/10/11 15:20:01 (13 years ago)
Author:
ascheibe
Message:

#1233

  • fixed bug that occurred when setting the Heartbeat Interval for a group of slaves
  • slave reports HbInterval now correct on first start
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.3/Manager/ConfigManager.cs

    r6725 r6897  
    2525using System.Linq;
    2626using System.Management;
     27using HeuristicLab.Clients.Hive.SlaveCore.Properties;
    2728
    2829
     
    5152    public ConfigManager(TaskManager jobManager) {
    5253      this.jobManager = jobManager;
     54      UpdateSlaveInfo();
     55    }
     56
     57    private void UpdateSlaveInfo() {
    5358      cpuCounter = new PerformanceCounter();
    5459      cpuCounter.CategoryName = "Processor";
     
    6671      slave.CpuSpeed = GetCpuSpeed();
    6772      slave.FreeMemory = GetFreeMemory();
     73      slave.HbInterval = (int)Settings.Default.HeartbeatInterval.TotalSeconds;
    6874    }
    6975
     
    7379    /// <returns>the ClientInfo object</returns>
    7480    public Slave GetClientInfo() {
     81      UpdateSlaveInfo();
    7582      return slave;
    7683    }
Note: See TracChangeset for help on using the changeset viewer.