Changeset 5789 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/ConfigManager.cs
- Timestamp:
- 03/22/11 14:11:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/ConfigManager.cs
r5711 r5789 29 29 namespace HeuristicLab.Clients.Hive.SlaveCore { 30 30 /// <summary> 31 /// accesses the Server and sends his data (uuid, uptimes, hardware config)31 /// accesses the server and sends his data (uuid, uptimes, hardware config) 32 32 /// </summary> 33 33 public class ConfigManager { … … 65 65 /// <returns>the ClientInfo object</returns> 66 66 public Slave GetClientInfo() { 67 //TODO: how to display connectedsince in gui?68 //hardwareInfo.Login = WcfService.Instance.ConnectedSince;69 67 return slave; 70 68 } … … 75 73 /// <returns></returns> 76 74 public StatusCommons GetStatusForClientConsole() { 77 //Todo: Locking78 75 StatusCommons st = new StatusCommons(); 79 76 st.ClientGuid = slave.Id; … … 143 140 144 141 /// <summary> 145 /// MegaBytes142 /// returns total physical memory of the machine in MB 146 143 /// </summary> 147 144 private static int? GetPhysicalMemory() { … … 154 151 155 152 /// <summary> 156 /// Mhz153 /// returns CPU frequence of the machine in Mhz 157 154 /// </summary> 158 155 private static int? GetCpuSpeed() { … … 189 186 } 190 187 191 Guid guid = new Guid(0, 0, 0, b); 188 // also get machine name and save it to the first 4 bytes 189 Guid guid = new Guid(Environment.MachineName.GetHashCode(), 0, 0, b); 192 190 return guid; 193 191 } else … … 239 237 } 240 238 239 /// <summary> 240 /// returns free memory of machine in MB 241 /// </summary> 241 242 public static int GetFreeMemory() { 242 243 int mb = 0;
Note: See TracChangeset
for help on using the changeset viewer.