mirror of
https://github.com/MistWeatherMedia/i2ME.git
synced 2026-11-28 14:20:00 -08:00
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:
1 parent
982de71c08
commit
e511404a59
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user