Changeset 6897 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.3/Manager/ConfigManager.cs
- Timestamp:
- 10/10/11 15:20:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.3/Manager/ConfigManager.cs
r6725 r6897 25 25 using System.Linq; 26 26 using System.Management; 27 using HeuristicLab.Clients.Hive.SlaveCore.Properties; 27 28 28 29 … … 51 52 public ConfigManager(TaskManager jobManager) { 52 53 this.jobManager = jobManager; 54 UpdateSlaveInfo(); 55 } 56 57 private void UpdateSlaveInfo() { 53 58 cpuCounter = new PerformanceCounter(); 54 59 cpuCounter.CategoryName = "Processor"; … … 66 71 slave.CpuSpeed = GetCpuSpeed(); 67 72 slave.FreeMemory = GetFreeMemory(); 73 slave.HbInterval = (int)Settings.Default.HeartbeatInterval.TotalSeconds; 68 74 } 69 75 … … 73 79 /// <returns>the ClientInfo object</returns> 74 80 public Slave GetClientInfo() { 81 UpdateSlaveInfo(); 75 82 return slave; 76 83 }
Note: See TracChangeset
for help on using the changeset viewer.