set it so that radar is delayed at the start, not the end, to not conflict with RecordGenTask and AlertsTask

This commit is contained in:
PicelBoi committed 2026-01-19 11:13:15 -05:00
1 parent 982de71c08
commit e511404a59
1 file changed
+2 -1
+2 -1
View File
@@ -260,6 +260,7 @@ public class TimedTasks
public static async Task RadarTask(UdpSender sender, int generationInterval)
{
await Task.Delay(generationInterval * 1000);
var watch = Stopwatch.StartNew();
Config.RadarConfig radarConfig = Config.config.RadarConfiguration;
@@ -341,7 +342,7 @@ public class TimedTasks
watch.Stop();
Log.Info($"Generated radar/satrad in {watch.ElapsedMilliseconds} ms.");
Log.Info($"Next record generation will be at {nextTimestamp}");
await Task.Delay(generationInterval * 1000);
}
}