Changeset 12769
- Timestamp:
- 07/16/15 16:55:37 (9 years ago)
- Location:
- branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Maintenance/3.3/WebApi
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Maintenance/3.3/WebApi/DataTransfer/FactClientInfo.cs
r12761 r12769 20 20 #endregion 21 21 22 23 22 namespace HeuristicLab.Services.WebApp.Maintenance.WebApi.DataTransfer { 24 23 public class FactClientInfo { -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Maintenance/3.3/WebApi/FactClientInfoController.cs
r12767 r12769 70 70 var infosToAggregate = new List<FactClientInfo> { e.Current }; 71 71 var prev = e.Current; 72 while ( infosToAggregate.Count() != entries && e.MoveNext()) {72 while (e.MoveNext() && infosToAggregate.Count() != entries) { 73 73 var cur = e.Current; 74 74 if (prev.IsAllowedToCalculate != cur.IsAllowedToCalculate || prev.SlaveState != cur.SlaveState) … … 77 77 prev = cur; 78 78 } 79 if (infosToAggregate.Count() == entries) {79 if (infosToAggregate.Count() >= 2) { 80 80 AggregateClientInfos(pm, infosToAggregate); 81 81 } 82 } while (e. MoveNext());82 } while (e.Current != null); 83 83 } 84 84 -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Maintenance/3.3/WebApi/PluginController.cs
r12761 r12769 47 47 return new DT.PluginPage { 48 48 TotalPlugins = query.Count(), 49 Plugins = query.OrderBy(x => x.DateCreated) 49 Plugins = query.OrderBy(x => x.DateCreated).ThenBy(x => x.Name) 50 50 .Skip((page - 1) * size) 51 51 .Take(size).Select(x => new DT.Plugin {
Note: See TracChangeset
for help on using the changeset viewer.