Changeset 6941
- Timestamp:
- 10/28/11 17:51:46 (13 years ago)
- 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 516 516 } 517 517 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) { 519 524 StartResultPolling(); 525 } 520 526 } 521 527 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.3/Status.aspx
r6478 r6941 26 26 <asp:Label ID="cpuUtilizationLabel" runat="server" /> 27 27 <br /> 28 TotalExecutionTime on Hive:28 ExecutionTime on Hive: 29 29 <asp:Label ID="totalExecutionTimeLabel" runat="server" /> 30 30 <br /> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.3/Status.aspx.cs
r6940 r6941 64 64 65 65 HeuristicLab.Services.Hive.DataTransfer.Statistics[] stats; 66 if (daysDropDownList.SelectedValue == "All") 66 if (daysDropDownList.SelectedValue == "All") { 67 67 stats = dao.GetStatistics(x => true).OrderBy(x => x.TimeStamp).ToArray(); 68 else68 } else { 69 69 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 73 72 if (stats.Length != 0) { 73 var firstStatisticsDate = stats.OrderBy(x => x.TimeStamp).First().TimeStamp; 74 var statisticsSince = DateTime.Now - firstStatisticsDate; 74 75 totalExecutionTimeLabel.Text = new TimeSpan(stats.Last().UserStatistics.Sum(x => x.ExecutionTime.Ticks)).ToString() + " (since " + Math.Round(statisticsSince.TotalDays, 2) + " days)"; 75 76 } else {
Note: See TracChangeset
for help on using the changeset viewer.