comparison ServerMonitor/Objects/ServerMonitor.cs @ 35:2ffb0bda7705

Increase wait time after system resume to begin running checks to prevent false positives.
author Brad Greco <brad@bgreco.net>
date Sat, 13 Jul 2019 12:18:21 -0400
parents f6235dc0a8ec
children 10e60b05c7ec
comparison
equal deleted inserted replaced
34:9c0e18d65e8b 35:2ffb0bda7705
498 if (check.Enabled && check.Server.Enabled && check.NextRunTime < DateTime.Now) 498 if (check.Enabled && check.Server.Enabled && check.NextRunTime < DateTime.Now)
499 { 499 {
500 pausedChecks.Add(check.Id); 500 pausedChecks.Add(check.Id);
501 } 501 }
502 } 502 }
503 // Wait 10 seconds to give things time to quiet down after resuming. 503 // Wait 20 seconds to give things time to quiet down after resuming.
504 await Task.Delay(10000); 504 await Task.Delay(20000);
505 suspend = false; 505 suspend = false;
506 Run(); 506 Run();
507 } 507 }
508 } 508 }
509 509