Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/11 17:02:15 (14 years ago)
Author:
cneumuel
Message:

#1233

  • fixed statelog when time on server differs from slave or client
  • fixed wrong creation of childjobs in experiment manager
  • made ganttchardview the default view for statelogs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/ExperimentManager/StateLogGanttChartView.cs

    r5636 r5718  
    2121
    2222using System;
     23using System.Linq;
    2324using HeuristicLab.Core.Views;
    2425using HeuristicLab.MainForm;
     
    2627namespace HeuristicLab.Clients.Hive.Views {
    2728  [View("StateLogGanttChart View")]
    28   [Content(typeof(StateLogList), IsDefaultView = false)]
     29  [Content(typeof(StateLogList), IsDefaultView = true)]
    2930  public sealed partial class StateLogGanttChartView : ItemView {
    3031    public new StateLogList Content {
     
    6061        ganttChart.Reset();
    6162        StateLogGanttChartListView.SetupCategories(ganttChart);
    62         var upperLimit = DateTime.Now.AddSeconds(10);
    63        
     63        var upperLimit = DateTime.FromOADate(Math.Min(Content.Max(x => x.DateTime).ToOADate(), DateTime.Now.AddSeconds(10).ToOADate()));
     64
    6465        for (int i = 0; i < Content.Count-1; i++) {
    65           //string tooltip = string.Format("State: {0}\n{1} - {2}", Content[i].State, Content[i].DateTime, Content[i + 1].DateTime);
    66           //if (!string.IsNullOrEmpty(Content[i].Exception))
    67           //  tooltip += "\n" + Content[i].Exception;
    68           //ganttChart.AddData(Content[i].State.ToString(), Content[i].State.ToString(), Content[i].DateTime, Content[i + 1].DateTime, tooltip, false);
    6966          StateLogGanttChartListView.AddData(ganttChart, i.ToString(), Content[i], Content[i+1], upperLimit);
    7067        }
Note: See TracChangeset for help on using the changeset viewer.