Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/04/11 11:20:22 (11 years ago)
Author:
ascheibe
Message:

#1233

  • disable logging of the user statistics on the server because of high run time demands
  • also show in the slave UI the timestamps of arrived messages
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.3/HiveDao.cs

    r6756 r6946  
    722722          db.SlaveStatistics.InsertOnSubmit(DT.Convert.ToEntity(slaveStat));
    723723        }
    724         foreach (var userStat in dto.UserStatistics) {
    725           userStat.Id = entity.StatisticsId;
    726           db.UserStatistics.InsertOnSubmit(DT.Convert.ToEntity(userStat));
     724        if (dto.UserStatistics != null) {
     725          foreach (var userStat in dto.UserStatistics) {
     726            userStat.Id = entity.StatisticsId;
     727            db.UserStatistics.InsertOnSubmit(DT.Convert.ToEntity(userStat));
     728          }
    727729        }
    728730        db.SubmitChanges();
     
    755757        }
    756758
    757         var executionTimesByUser = from job in db.Tasks
    758                                    group job by job.Job.OwnerUserId into g
     759        var executionTimesByUser = from task in db.Tasks
     760                                   group task by task.Job.OwnerUserId into g
    759761                                   select new { UserId = g.Key, ExecutionTime = TimeSpan.FromMilliseconds(g.Select(x => x.ExecutionTimeMs).Sum()) };
    760762        foreach (var item in executionTimesByUser) {
Note: See TracChangeset for help on using the changeset viewer.