Fix to stop the misdetection of preset file change

This commit is contained in:
djbadders 2019-04-10 23:29:33 +01:00
parent 982e105f3f
commit 46f517fc3a
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ namespace Core.ProfitTrailer
if (presetFilePath.IndexOf(".properties", StringComparison.InvariantCultureIgnoreCase) > -1) if (presetFilePath.IndexOf(".properties", StringComparison.InvariantCultureIgnoreCase) > -1)
{ {
FileInfo presetFile = new FileInfo(presetFilePath); FileInfo presetFile = new FileInfo(presetFilePath);
if (presetFile.LastWriteTime > DateTime.UtcNow.AddMinutes(-systemConfiguration.AnalyzerSettings.MarketAnalyzer.IntervalMinutes).AddSeconds(2)) if (presetFile.LastWriteTimeUtc > DateTime.UtcNow.AddMinutes(-systemConfiguration.AnalyzerSettings.MarketAnalyzer.IntervalMinutes).AddSeconds(2))
{ {
// File has changed recently, force preparation check // File has changed recently, force preparation check