Fixed bug in downtime calculation.
This commit is contained in:
parent
a085c84b2b
commit
f40cee57a7
@ -491,7 +491,7 @@ public class ScrapeDatabaseRepository : IScrapeDatabaseRepository
|
|||||||
|
|
||||||
SqlCommand cmd = _connection.CreateCommand();
|
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 " +
|
" FROM REACT_MODE " +
|
||||||
" WHERE REACT_NO = @reactorNumber " +
|
" WHERE REACT_NO = @reactorNumber " +
|
||||||
" AND (MODE = 'UP' OR MODE = 'UP_WITH_INCREASED_SAMPLING') " +
|
" AND (MODE = 'UP' OR MODE = 'UP_WITH_INCREASED_SAMPLING') " +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user