- Timestamp:
- 03/27/09 14:04:47 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/ConfigurationManager/ConfigManager.cs
r1379 r1449 55 55 56 56 if (Settings.Default.Guid == Guid.Empty) { 57 hardwareInfo. ClientId = Guid.NewGuid();58 Settings.Default.Guid = hardwareInfo. ClientId;57 hardwareInfo.Id = Guid.NewGuid(); 58 Settings.Default.Guid = hardwareInfo.Id; 59 59 Settings.Default.Save(); 60 60 } else 61 hardwareInfo. ClientId = Settings.Default.Guid;61 hardwareInfo.Id = Settings.Default.Guid; 62 62 63 63 hardwareInfo.NrOfCores = Environment.ProcessorCount; … … 102 102 //Todo: Locking 103 103 StatusCommons st = new StatusCommons(); 104 st.ClientGuid = hardwareInfo. ClientId;104 st.ClientGuid = hardwareInfo.Id; 105 105 106 106 st.Status = WcfService.Instance.ConnState; … … 111 111 st.JobsFetched = ClientStatusInfo.JobsFetched; 112 112 113 Dictionary< long, Executor> engines = Core.GetExecutionEngines();113 Dictionary<Guid, Executor> engines = Core.GetExecutionEngines(); 114 114 st.Jobs = new List<JobStatus>(); 115 115 116 116 lock (engines) { 117 foreach (KeyValuePair< long, Executor> kvp in engines) {117 foreach (KeyValuePair<Guid, Executor> kvp in engines) { 118 118 Executor e = kvp.Value; 119 119 st.Jobs.Add(new JobStatus { JobId = e.JobId, Progress = e.Progress, Since = e.CreationTime }); … … 123 123 } 124 124 125 public Dictionary< long, double> GetProgressOfAllJobs() {126 Dictionary< long,double> prog = new Dictionary<long,double>();127 Dictionary< long, Executor> engines = Core.GetExecutionEngines();125 public Dictionary<Guid, double> GetProgressOfAllJobs() { 126 Dictionary<Guid, double> prog = new Dictionary<Guid, double>(); 127 Dictionary<Guid, Executor> engines = Core.GetExecutionEngines(); 128 128 lock (engines) { 129 foreach (KeyValuePair< long, Executor> kvp in engines) {129 foreach (KeyValuePair<Guid, Executor> kvp in engines) { 130 130 Executor e = kvp.Value; 131 131 prog[e.JobId] = e.Progress;
Note: See TracChangeset
for help on using the changeset viewer.