Changeset 6993 for trunk/sources/HeuristicLab.Services.Hive.Web
- Timestamp:
- 11/14/11 17:17:46 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Services.Hive.Web/Hive-3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.Hive.Web/Hive-3.3/Status.aspx
r6983 r6993 6 6 <html xmlns="http://www.w3.org/1999/xhtml"> 7 7 <head runat="server"> 8 <title></title> 8 <title>HeuristicLab Hive Status Monitor</title> 9 <link rel="icon" type="image/ico" href="HeuristicLab.ico"> 9 10 </head> 10 11 <body> 12 <center> 13 <h1>HeuristicLab Hive Status Monitor</h1> 14 </center> 11 15 <form id="form1" runat="server"> 12 16 <div> … … 25 29 Avg. CPU Utilization: 26 30 <asp:Label ID="cpuUtilizationLabel" runat="server" /> 27 <br /> 28 ExecutionTime on Hive: 29 <asp:Label ID="totalExecutionTimeLabel" runat="server" /> 30 <br /> 31 <br /> 31 32 <br /> 32 33 Days: -
trunk/sources/HeuristicLab.Services.Hive.Web/Hive-3.3/Status.aspx.cs
r6983 r6993 69 69 stats = dao.GetStatistics(x => x.Timestamp >= DateTime.Now.Subtract(TimeSpan.FromDays(int.Parse(daysDropDownList.SelectedValue)))).OrderBy(x => x.TimeStamp).ToArray(); 70 70 } 71 72 if (stats.Length != 0) {73 var firstStatisticsDate = stats.OrderBy(x => x.TimeStamp).First().TimeStamp;74 var statisticsSince = DateTime.Now - firstStatisticsDate;75 totalExecutionTimeLabel.Text = new TimeSpan(stats.Last().UserStatistics.Sum(x => x.ExecutionTime.Ticks)).ToString() + " (since " + Math.Round(statisticsSince.TotalDays, 2) + " days)";76 } else {77 totalExecutionTimeLabel.Text = "00:00:00.00";78 }79 71 80 72 for (int i = 0; i < stats.Length; i++) {
Note: See TracChangeset
for help on using the changeset viewer.