Updated Program
Added noise for the second condition to show we are checking for updates.
This commit is contained in:
parent
e2c356a723
commit
13bb5ac0dd
1 changed files with 4 additions and 0 deletions
|
|
@ -95,9 +95,13 @@ class Program
|
|||
{
|
||||
Thread.Sleep(100);
|
||||
if (lastTime - DateTime.Now <= TimeSpan.FromSeconds(30)) continue;
|
||||
var start = DateTime.Now;
|
||||
Console.WriteLine("Checking for updates...");
|
||||
foreach (var syncer in syncers)
|
||||
syncer.FetchDatabase().Wait();
|
||||
lastTime = DateTime.Now;
|
||||
var end = DateTime.Now - start;
|
||||
Console.WriteLine($"Check completed. Total Time: {end}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue