Changeset 9023 for trunk/sources
- Timestamp:
- 12/11/12 15:37:03 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Services.Hive.Web/Hive-3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.Hive.Web/Hive-3.3/Status.aspx
r9022 r9023 15 15 <form id="form1" runat="server"> 16 16 <div> 17 Available Cores: 17 Overall Available Cores: 18 <asp:Label ID="overallAvailableCoresLabel" runat="server" /> 19 <br /> 20 Available Cores (real): 18 21 <asp:Label ID="availableCoresLabel" runat="server" /> 19 <br />22 <br /> 20 23 Used Cores / Calculating Jobs: 21 24 <asp:Label ID="usedCoresLabel" runat="server" /> … … 24 27 <asp:Label ID="waitingJobsLabel" runat="server" /> 25 28 <br /> 29 Overall 26 30 Avg. CPU Utilization: 31 <asp:Label ID="overallCpuUtilizationLabel" runat="server" /> 32 <br /> 33 Real Avg. CPU Utilization: 27 34 <asp:Label ID="cpuUtilizationLabel" runat="server" /> 28 <br />35 <br /> 29 36 Slaves (CPU Utilization): 30 37 <asp:Label ID="slavesLabel" runat="server" /> 31 38 <br /> 32 39 <br /> 33 Number of calculating tasks by user:<asp:Table ID="calculatingTasksByUserTable" runat="server" GridLines="Both">34 <asp:TableRow runat="server" >40 Number of Calculating Tasks by User:<asp:Table ID="calculatingTasksByUserTable" runat="server" GridLines="Both"> 41 <asp:TableRow runat="server" BackColor="#CCCCCC"> 35 42 <asp:TableCell runat="server" Font-Bold="False">User</asp:TableCell> 36 <asp:TableCell runat="server" Font-Bold="False">Nr. of tasks</asp:TableCell>43 <asp:TableCell runat="server" Font-Bold="False">Nr. of Tasks</asp:TableCell> 37 44 </asp:TableRow> 38 45 </asp:Table> 39 46 <br /> 40 Number of waiting tasks by user:<asp:Table ID="waitingTasksByUserTable" runat="server" GridLines="Both">41 <asp:TableRow runat="server" >47 Number of Waiting Tasks by User:<asp:Table ID="waitingTasksByUserTable" runat="server" GridLines="Both"> 48 <asp:TableRow runat="server" BackColor="#CCCCCC"> 42 49 <asp:TableCell runat="server" Font-Bold="False">User</asp:TableCell> 43 <asp:TableCell runat="server" Font-Bold="False">Nr. of tasks</asp:TableCell>50 <asp:TableCell runat="server" Font-Bold="False">Nr. of Tasks</asp:TableCell> 44 51 </asp:TableRow> 45 52 </asp:Table> -
trunk/sources/HeuristicLab.Services.Hive.Web/Hive-3.3/Status.aspx.cs
r9022 r9023 66 66 }, false, false); 67 67 68 int currentlyAvailableCores = onlineSlaves.Where(s => s.Cores.HasValue).Sum(s => s.Cores.Value); 69 int currentlyUsedCores = currentlyAvailableCores - onlineSlaves.Where(s => s.FreeCores.HasValue).Sum(s => s.FreeCores.Value); 68 int overallCurrentlyAvailableCores = onlineSlaves.Where(s => s.Cores.HasValue).Sum(s => s.Cores.Value); 69 int currentlyAvailableCores = onlineSlaves.Where(s => s.Cores.HasValue && s.IsAllowedToCalculate).Sum(s => s.Cores.Value); 70 int currentlyUsedCores = overallCurrentlyAvailableCores - onlineSlaves.Where(s => s.FreeCores.HasValue).Sum(s => s.FreeCores.Value); 70 71 72 this.overallAvailableCoresLabel.Text = overallCurrentlyAvailableCores.ToString(); 71 73 this.availableCoresLabel.Text = currentlyAvailableCores.ToString(); 72 74 this.usedCoresLabel.Text = currentlyUsedCores.ToString(); … … 75 77 slavesLabel.Text = string.Join(", ", onlineSlaves.Select(x => string.Format("<a href=\"?resource={0}\">{0}</a> ({1} %)", x.Name, Math.Round(x.CpuUtilization, 2)))); 76 78 77 cpuUtilizationLabel.Text = (onlineSlaves.Count() > 0 ? Math.Round(onlineSlaves.Average(s => s.CpuUtilization), 2).ToString() : "0.0") + " %"; 79 overallCpuUtilizationLabel.Text = (onlineSlaves.Count() > 0 ? Math.Round(onlineSlaves.Average(s => s.CpuUtilization), 2).ToString() : "0.0") + " %"; 80 cpuUtilizationLabel.Text = (onlineSlaves.Count() > 0 ? Math.Round(onlineSlaves.Where(x => x.IsAllowedToCalculate).Average(s => s.CpuUtilization), 2).ToString() : "0.0") + " %"; 78 81 79 82 DT.Statistics[] stats = new DT.Statistics[0];
Note: See TracChangeset
for help on using the changeset viewer.