mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
Fixes restart timer being wrong most of the time
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user