Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6941


Ignore:
Timestamp:
10/28/11 17:51:46 (13 years ago)
Author:
ascheibe
Message:

#1233

  • corrected total execution time in hive shown on status page
  • Job Manager: don't poll already finished jobs
Location:
branches/HeuristicLab.Hive-3.4/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.3/RefreshableJob.cs

    r6863 r6941  
    516516      }
    517517      if (this.HiveTasks != null && this.HiveTasks.Count > 0 && this.GetAllHiveTasks().All(x => x.Task.Id != Guid.Empty)) {
    518         if (this.RefreshAutomatically)
     518        if (IsFinished()) {
     519          this.ExecutionState = Core.ExecutionState.Stopped;
     520          this.RefreshAutomatically = false;
     521        }
     522
     523        if (this.RefreshAutomatically) {
    519524          StartResultPolling();
     525        }
    520526      }
    521527
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.3/Status.aspx

    r6478 r6941  
    2626    <asp:Label ID="cpuUtilizationLabel" runat="server" />
    2727    <br />
    28     Total ExecutionTime on Hive:
     28    ExecutionTime on Hive:
    2929    <asp:Label ID="totalExecutionTimeLabel" runat="server" />
    3030    <br />
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.3/Status.aspx.cs

    r6940 r6941  
    6464
    6565    HeuristicLab.Services.Hive.DataTransfer.Statistics[] stats;
    66     if (daysDropDownList.SelectedValue == "All")
     66    if (daysDropDownList.SelectedValue == "All") {
    6767      stats = dao.GetStatistics(x => true).OrderBy(x => x.TimeStamp).ToArray();
    68     else
     68    } else {
    6969      stats = dao.GetStatistics(x => x.Timestamp >= DateTime.Now.Subtract(TimeSpan.FromDays(int.Parse(daysDropDownList.SelectedValue)))).OrderBy(x => x.TimeStamp).ToArray();
    70 
    71     var firstStatisticsDate = DateTime.Parse("2011-05-24 17:16:40");
    72     var statisticsSince = DateTime.Now - firstStatisticsDate;
     70    }
     71                                                     
    7372    if (stats.Length != 0) {
     73      var firstStatisticsDate = stats.OrderBy(x => x.TimeStamp).First().TimeStamp;
     74      var statisticsSince = DateTime.Now - firstStatisticsDate;
    7475      totalExecutionTimeLabel.Text = new TimeSpan(stats.Last().UserStatistics.Sum(x => x.ExecutionTime.Ticks)).ToString() + " (since " + Math.Round(statisticsSince.TotalDays, 2) + " days)";
    7576    } else {
Note: See TracChangeset for help on using the changeset viewer.