From f40cee57a7f04cff348a8afac123aeb92bff3776 Mon Sep 17 00:00:00 2001 From: Daniel Wathen Date: Mon, 23 Jan 2023 20:16:30 -0700 Subject: [PATCH] Fixed bug in downtime calculation. --- .../Repositories/Implementations/ScrapeDatabaseRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReportingServices.Shared/Repositories/Implementations/ScrapeDatabaseRepository.cs b/ReportingServices.Shared/Repositories/Implementations/ScrapeDatabaseRepository.cs index 3b9abb1..ca5918b 100644 --- a/ReportingServices.Shared/Repositories/Implementations/ScrapeDatabaseRepository.cs +++ b/ReportingServices.Shared/Repositories/Implementations/ScrapeDatabaseRepository.cs @@ -491,7 +491,7 @@ public class ScrapeDatabaseRepository : IScrapeDatabaseRepository SqlCommand cmd = _connection.CreateCommand(); - string query = "SELECT TOP 1 DATEDIFF(MINUTE,START_DTM,SYSDATETIME()) " + + string query = "SELECT TOP 1 DATEDIFF(MINUTE,STOP_DTM,SYSDATETIME()) " + " FROM REACT_MODE " + " WHERE REACT_NO = @reactorNumber " + " AND (MODE = 'UP' OR MODE = 'UP_WITH_INCREASED_SAMPLING') " +