Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/08/11 10:38:36 (13 years ago)
Author:
ascheibe
Message:

#1233

  • moved DTO's to Services.Hive project
  • removed Services.Hive.Common project
  • some cleanups
  • added DTO's for enums
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  
    77using HeuristicLab.Services.Hive.DataAccess;
    88using HeuristicLab.Services.Hive;
    9 using HeuristicLab.Services.Hive.Common.DataTransfer;
     9using HeuristicLab.Services.Hive.DataTransfer;
    1010using System.Text;
    1111using System.Web.UI.DataVisualization.Charting;
     12using DA = HeuristicLab.Services.Hive.DataAccess;
    1213
    1314public partial class Status : System.Web.UI.Page {
     
    2627      speedupChartMinutes.Visible = true;
    2728    }
    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));
    3031
    3132    int currentlyAvailableCores = onlineSlaves.Sum(s => s.Cores.Value);
    3233    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();
    3435
    3536    this.availableCoresLabel.Text = currentlyAvailableCores.ToString();
     
    4142    cpuUtilizationLabel.Text = (onlineSlaves.Count() > 0 ? Math.Round(onlineSlaves.Average(s => s.CpuUtilization), 2).ToString() : "0.0") + " %";
    4243
    43     HeuristicLab.Services.Hive.Common.DataTransfer.Statistics[] stats;
     44    HeuristicLab.Services.Hive.DataTransfer.Statistics[] stats;
    4445    if (daysDropDownList.SelectedValue == "All")
    4546      stats = dao.GetStatistics(x => true).OrderBy(x => x.TimeStamp).ToArray();
Note: See TracChangeset for help on using the changeset viewer.