Changeset 6469
- Timestamp:
- 06/22/11 16:47:57 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Status.aspx
r6458 r6469 25 25 Avg. CPU Utilization: 26 26 <asp:Label ID="cpuUtilizationLabel" runat="server" /> 27 <br /> 28 Total ExecutionTime on Hive: 29 <asp:Label ID="totalExecutionTimeLabel" runat="server" /> 27 30 <br /> 28 31 <br /> … … 69 72 </asp:Chart> 70 73 <br /> 71 <br />72 74 Cores/Used Cores History<br /> 73 75 <asp:Chart ID="coresChart" runat="server" Palette="None" Width="1900px" PaletteCustomColors="137, 165, 78; 185, 205, 150"> … … 93 95 </ChartAreas> 94 96 </asp:Chart> 95 <br />96 97 <br /> 97 98 Memory/Used Memory History (GB)<br /> … … 142 143 </asp:Chart> 143 144 <br /> 144 <br />145 145 Speedup (ComputedHours/Hour)<br /> 146 146 <br /> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Status.aspx.cs
r6458 r6469 26 26 slavesLabel.Text = string.Join(", ", onlineSlaves.Select(x => string.Format("{0} ({1} %)", x.Name, Math.Round(x.CpuUtilization, 2)))); 27 27 28 cpuUtilizationLabel.Text = onlineSlaves.Count() > 0 ? onlineSlaves.Average(s => s.CpuUtilization).ToString() : "0.0";28 cpuUtilizationLabel.Text = (onlineSlaves.Count() > 0 ? Math.Round(onlineSlaves.Average(s => s.CpuUtilization), 2).ToString() : "0.0") + " %"; 29 29 30 30 HeuristicLab.Services.Hive.Common.DataTransfer.Statistics[] stats; … … 34 34 stats = dao.GetStatistics(x => x.Timestamp >= DateTime.Now.Subtract(TimeSpan.FromDays(int.Parse(daysDropDownList.SelectedValue)))).OrderByDescending(x => x.TimeStamp).ToArray(); 35 35 36 var firstStatisticsDate = DateTime.Parse("2011-05-24 17:16:40"); 37 var statisticsSince = DateTime.Now - firstStatisticsDate; 38 totalExecutionTimeLabel.Text = new TimeSpan(stats.First().UserStatistics.Sum(x => x.ExecutionTime.Ticks)).ToString() + " (since " + Math.Round(statisticsSince.TotalDays, 2) + " days)"; 36 39 37 40 for (int i = 0; i < stats.Length; i++) {
Note: See TracChangeset
for help on using the changeset viewer.