Batch.SaveTime introduced, Batch.EndTime calculation modified.
This commit is contained in:
@@ -1252,7 +1252,19 @@ namespace TBF.Rig.Sequences
|
||||
///
|
||||
/// Update batch results, determine whether watermeters passed all required tests
|
||||
///
|
||||
BatchRslts.Batch.EndTime = DateTime.Now; /// Set cycle end time
|
||||
|
||||
/// Determine the end of the last test and save it as the batch end time
|
||||
DateTime lastTestEndTime = DateTime.MinValue;
|
||||
if (BatchRslts.Batch.TestRslts != null)
|
||||
{
|
||||
foreach (var tr in BatchRslts.Batch.TestRslts)
|
||||
{
|
||||
if (tr.EndTime > lastTestEndTime) lastTestEndTime = tr.EndTime;
|
||||
}
|
||||
}
|
||||
BatchRslts.Batch.EndTime = lastTestEndTime;
|
||||
BatchRslts.Batch.SaveTime = DateTime.Now;
|
||||
|
||||
Results.Utils.GetCounterStates(BatchRslts.Batch, Program.LocalSettings.Counters); /// Update counters
|
||||
/// Remove results of internal tests
|
||||
for (int i = BatchRslts.Batch.TestRslts.Count - 1; i >= 0; i--)
|
||||
|
||||
Reference in New Issue
Block a user