Merge pull request #116 from tgstation/Cyberboss-patch-1

Fixes restart timer being wrong most of the time
This commit is contained in:
Jordan Brown
2017-07-05 13:25:05 -04:00
committed by GitHub
+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