tickOffset bug
This commit is contained in:
@ -117,7 +117,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
||||
string directoryName = Path.GetDirectoryName(reportFullPath);
|
||||
string sequenceDirectoryName = string.Concat(Path.GetDirectoryName(reportFullPath), @"\", _Logistics.Sequence);
|
||||
string originalDataBioRad = string.Concat(Path.GetDirectoryName(reportFullPath), @"\", _OriginalDataBioRad, _Logistics.Sequence, ".txt");
|
||||
List<Tuple<string, bool, DateTime, string>> tuples = ProcessData.GetTuples(this, _Logistics, results.Item4, _OriginalDataBioRad);
|
||||
List<Tuple<string, bool, DateTime, string>> tuples = ProcessData.GetTuples(this, _Logistics, _TickOffset.Value, results.Item4, _OriginalDataBioRad);
|
||||
if (_IsEAFHosted)
|
||||
{
|
||||
if (tuples.Any())
|
||||
|
@ -13,7 +13,7 @@ namespace Adaptation.FileHandlers.txt;
|
||||
public partial class ProcessData
|
||||
{
|
||||
|
||||
internal static List<Tuple<string, bool, DateTime, string>> GetTuples(FileRead fileRead, Logistics logistics, List<FileInfo> fileInfoCollection, string originalDataBioRad)
|
||||
internal static List<Tuple<string, bool, DateTime, string>> GetTuples(FileRead fileRead, Logistics logistics, long tickOffset, List<FileInfo> fileInfoCollection, string originalDataBioRad)
|
||||
{
|
||||
List<Tuple<string, bool, DateTime, string>> results = new();
|
||||
ILog log = LogManager.GetLogger(typeof(ProcessData));
|
||||
@ -495,7 +495,7 @@ public partial class ProcessData
|
||||
// folder, to a different name so that the tool does not attempt to update the file while being
|
||||
// processed by the EAF cell instance.
|
||||
// Get the last date/time the DataBioRad.txt file was updated
|
||||
DateTime afterCheck = File.GetLastWriteTime(logistics.ReportFullPath);
|
||||
DateTime afterCheck = new(File.GetLastWriteTime(logistics.ReportFullPath).Ticks + tickOffset);
|
||||
// Ensure that the DataBioRad.txt file has not been updated since the FileReader began the healthcheck
|
||||
// If the date/time values are different between the "Before" and "After" checks then let it go. The
|
||||
// tool is still busy trying to update the file. The FileReader will try to catch the data on the
|
||||
|
Reference in New Issue
Block a user