Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/19/15 13:44:42 (9 years ago)
Author:
ascheibe
Message:

#2388 fixed some queries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApi/DataController.cs

    r12878 r12883  
    9191          AvgWaitingTime = count > 0 ? (long)calculatingTasks.OrderBy(x => x.StartTime).Take(count).Average(x => x.InitialWaitingTime) : 0,
    9292          AvgCalculatingTime = lastCalculatingTimes != null ? lastCalculatingTimes.Avg : 0,
    93           TotalCpuTime = factTasks.Sum(x => x.CalculatingTime),
     93          TotalCpuTime = factTasks.Sum(x => Convert.ToInt64(x.CalculatingTime)),
    9494          StandardDeviationCalculatingTime = (long)StandardDeviation(completedTasks.Select(x => (double)x.CalculatingTime)),
    9595          BeginDate = factTasks.OrderBy(x => x.StartTime).Select(x => x.StartTime).FirstOrDefault()
Note: See TracChangeset for help on using the changeset viewer.