Fixes restart timer being wrong most of the time

This commit is contained in:
Jordan Brown
2017-07-04 21:07:17 -04:00
committed by GitHub
parent 965ca596c4
commit f445bc9abe
+1 -1
View File
@@ -239,7 +239,7 @@ namespace TGServerService
if (AwaitingShutdown == ShutdownRequestPhase.Pinged)
return;
if ((DateTime.Now - starttime).Seconds < DDBadStartTime)
if ((DateTime.Now - starttime).TotalSeconds < DDBadStartTime)
{
++retries;
var sleep_time = (int)Math.Min(Math.Pow(2, retries), 3600); //max of one hour