Skip to content

Commit

Permalink
Fix incorrect value for Time Since Process Start
Browse files Browse the repository at this point in the history
Resolves #27
  • Loading branch information
FloatingMilkshake committed Dec 14, 2024
1 parent 3e27a0d commit ad628bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Helpers/DebugInfoHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace MechanicalMilkshake.Helpers;
using System.Threading;

namespace MechanicalMilkshake.Helpers;

public class DebugInfoHelpers
{
Expand Down Expand Up @@ -26,6 +28,8 @@ public static DebugInfo GetDebugInfo()
var commitMessage = FileHelpers.ReadFile("CommitMessage.txt",
$"Running in development mode; process started at {Program.ProcessStartTime}");

while (Program.ConnectTime == default)
Thread.Sleep(100);
var timeSinceProcessStart = (Program.ConnectTime - Convert.ToDateTime(Program.ProcessStartTime)).Humanize();

return new DebugInfo(
Expand Down

0 comments on commit ad628bc

Please sign in to comment.