Changeset 9485 for branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/OptimizedHiveDao.cs
- Timestamp:
- 05/10/13 13:27:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/OptimizedHiveDao.cs
r9434 r9485 241 241 242 242 public bool SlaveHasToShutdownComputer(Guid slaveId) { 243 return Db.ExecuteQuery<int>(DowntimeQueryString, slaveId, DateTime.Now, DowntimeType.Shutdown ).First() > 0;243 return Db.ExecuteQuery<int>(DowntimeQueryString, slaveId, DateTime.Now, DowntimeType.Shutdown.ToString()).FirstOrDefault() > 0; 244 244 } 245 245 246 246 public bool SlaveIsAllowedToCalculate(Guid slaveId) { 247 return Db.ExecuteQuery<int>(DowntimeQueryString, slaveId, DateTime.Now, DowntimeType.Offline ).First() == 0;247 return Db.ExecuteQuery<int>(DowntimeQueryString, slaveId, DateTime.Now, DowntimeType.Offline.ToString()).FirstOrDefault() == 0; 248 248 } 249 249 #endregion
Note: See TracChangeset
for help on using the changeset viewer.