Changeset 12443
- Timestamp:
- 06/15/15 10:52:01 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApi/DataController.cs
r12435 r12443 42 42 SELECT 43 43 DISTINCT UserId, 44 (SELECT Count FROM UserTasks WHERE TaskState = 'Calculating' AND UserId = ut.UserId) AS CalculatingTasks,45 (SELECT Count FROM UserTasks WHERE TaskState = 'Waiting' AND UserId = ut.UserId) AS WaitingTasks44 ISNULL((SELECT Count FROM UserTasks WHERE TaskState = 'Calculating' AND UserId = ut.UserId), 0) AS CalculatingTasks, 45 ISNULL((SELECT Count FROM UserTasks WHERE TaskState = 'Waiting' AND UserId = ut.UserId), 0) AS WaitingTasks 46 46 FROM UserTasks ut;"; 47 48 47 49 48 private class UserTaskStatus { … … 129 128 } 130 129 using (var db = new HiveDataContext()) { 131 var statistics = db.Statistics.Where(s => s.Timestamp >= start && s.Timestamp <= end); 130 var statistics = db.Statistics.Where(s => s.Timestamp >= start && s.Timestamp <= end) 131 .OrderBy(s => s.Timestamp); 132 132 var status = new DTO.Status { 133 133 CoreStatus = new DTO.CoreStatus(),
Note: See TracChangeset
for help on using the changeset viewer.