Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/27/11 15:43:35 (13 years ago)
Author:
ascheibe
Message:

#1233

  • fixed naming of binding configurations
  • fixed small bug in Status page
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.3/Status.aspx.cs

    r6744 r6940  
    5151    var onlineSlaves = dao.GetSlaves(x => (x.SlaveState == DA.SlaveState.Calculating || x.SlaveState == DA.SlaveState.Idle) && resourceIds.Contains(x.ResourceId));
    5252
    53     int currentlyAvailableCores = onlineSlaves.Sum(s => s.Cores.Value);
    54     int currentlyUsedCores = currentlyAvailableCores - onlineSlaves.Sum(s => s.FreeCores.Value);
     53    int currentlyAvailableCores = onlineSlaves.Where(s => s.Cores.HasValue).Sum(s => s.Cores.Value);
     54    int currentlyUsedCores = currentlyAvailableCores - onlineSlaves.Where(s => s.FreeCores.HasValue).Sum(s => s.FreeCores.Value);
    5555    int currentlyJobsWaiting = ServiceLocator.Instance.HiveDao.GetTasks(x => x.State == DA.TaskState.Waiting).Count();
    5656
Note: See TracChangeset for help on using the changeset viewer.