Changeset 6717 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Status.aspx.cs
- Timestamp:
- 09/08/11 10:38:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Status.aspx.cs
r6712 r6717 7 7 using HeuristicLab.Services.Hive.DataAccess; 8 8 using HeuristicLab.Services.Hive; 9 using HeuristicLab.Services.Hive. Common.DataTransfer;9 using HeuristicLab.Services.Hive.DataTransfer; 10 10 using System.Text; 11 11 using System.Web.UI.DataVisualization.Charting; 12 using DA = HeuristicLab.Services.Hive.DataAccess; 12 13 13 14 public partial class Status : System.Web.UI.Page { … … 26 27 speedupChartMinutes.Visible = true; 27 28 } 28 29 var onlineSlaves = dao.GetSlaves(x => (x.SlaveState == SlaveState.Calculating || x.SlaveState ==SlaveState.Idle) && resourceIds.Contains(x.ResourceId));29 30 var onlineSlaves = dao.GetSlaves(x => (x.SlaveState == DA.SlaveState.Calculating || x.SlaveState == DA.SlaveState.Idle) && resourceIds.Contains(x.ResourceId)); 30 31 31 32 int currentlyAvailableCores = onlineSlaves.Sum(s => s.Cores.Value); 32 33 int currentlyUsedCores = currentlyAvailableCores - onlineSlaves.Sum(s => s.FreeCores.Value); 33 int currentlyJobsWaiting = ServiceLocator.Instance.HiveDao.GetJobs(x => x.State == JobState.Waiting).Count();34 int currentlyJobsWaiting = ServiceLocator.Instance.HiveDao.GetJobs(x => x.State == DA.JobState.Waiting).Count(); 34 35 35 36 this.availableCoresLabel.Text = currentlyAvailableCores.ToString(); … … 41 42 cpuUtilizationLabel.Text = (onlineSlaves.Count() > 0 ? Math.Round(onlineSlaves.Average(s => s.CpuUtilization), 2).ToString() : "0.0") + " %"; 42 43 43 HeuristicLab.Services.Hive. Common.DataTransfer.Statistics[] stats;44 HeuristicLab.Services.Hive.DataTransfer.Statistics[] stats; 44 45 if (daysDropDownList.SelectedValue == "All") 45 46 stats = dao.GetStatistics(x => true).OrderBy(x => x.TimeStamp).ToArray();
Note: See TracChangeset
for help on using the changeset viewer.