Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/17/10 10:26:55 (14 years ago)
Author:
cneumuel
Message:
  • Refactored HL.Hive.Experiment. JobItems are not called HiveJobs and OptimizerJobs do not contain a hierarchy anymore.
  • Dynamic generation of jobs on a slave are not reflected on the client user interface.
  • Optimizer-Trees are now strictly synchronized with the HiveJob-Trees (also the ComputeInParallel property is taken into account when the Child HiveJobs are created)
  • Improved the way a class can report progress and lock the UI (IProgressReporter, IProgress, Progress, ProgressView)
  • Changes were made to the config-files, so that server and clients work with blade12.hpc.fh-hagenberg.at
  • Lots of small changes and bugfixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/ConfigurationManager/ConfigManager.cs

    r4333 r4423  
    107107      st.ConnectedSince = WcfService.Instance.ConnectedSince;
    108108
    109       st.TotalCores = hardwareInfo.NrOfCores;
    110       st.FreeCores = hardwareInfo.NrOfCores - GetUsedCores();
     109      st.TotalCores = hardwareInfo.NrOfCores.HasValue ? hardwareInfo.NrOfCores.Value : 0;
     110      st.FreeCores = hardwareInfo.NrOfCores.HasValue ? hardwareInfo.NrOfCores.Value - GetUsedCores() : 0;
    111111
    112112      st.JobsAborted = SlaveStatusInfo.JobsAborted;
     
    120120        foreach (KeyValuePair<Guid, Executor> kvp in engines) {
    121121          Executor e = kvp.Value;
    122           st.Jobs.Add(new JobStatus { JobId = e.JobId, Progress = e.Progress, Since = e.CreationTime });
     122          st.Jobs.Add(new JobStatus { JobId = e.JobId, ExecutionTime = e.ExecutionTime, Since = e.CreationTime });
    123123        }
    124124      }
     
    126126    }
    127127
    128     public Dictionary<Guid, double> GetProgressOfAllJobs() {
    129       Dictionary<Guid, double> prog = new Dictionary<Guid, double>();
     128    public Dictionary<Guid, TimeSpan> GetExecutionTimeOfAllJobs() {
     129      Dictionary<Guid, TimeSpan> prog = new Dictionary<Guid, TimeSpan>();
    130130      Dictionary<Guid, Executor> engines = Core.ExecutionEngines;
    131131      lock (engines) {
    132132        foreach (KeyValuePair<Guid, Executor> kvp in engines) {
    133133          Executor e = kvp.Value;
    134           //if (!e.JobIsFinished)
    135           prog[e.JobId] = e.Progress;
     134          prog[e.JobId] = e.ExecutionTime;
    136135        }
    137136      }
Note: See TracChangeset for help on using the changeset viewer.