From 51a8d04a9788ce5110c7c75bde1be4f0bac78fa0 Mon Sep 17 00:00:00 2001 From: Garrett <52760019+Casimir255@users.noreply.github.com> Date: Sat, 16 Dec 2023 20:25:05 -0600 Subject: [PATCH] update --- Components/MyHudTimeTracker.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Components/MyHudTimeTracker.cs b/Components/MyHudTimeTracker.cs index de0048a..ed4527e 100644 --- a/Components/MyHudTimeTracker.cs +++ b/Components/MyHudTimeTracker.cs @@ -69,12 +69,16 @@ namespace SeamlessClient.Components } else { - double minutes = Math.Round(durationInSeconds / 60, 0); - double seconds = Math.Round(durationInSeconds % 60, 1); - if (seconds > 0) + + + int minutes = (int)(durationInSeconds / 60); + int remainingSeconds = (int)(durationInSeconds % 60); + + + if (remainingSeconds > 0) { - return $"{minutes}m {seconds}s"; + return $"{minutes}m {remainingSeconds}s"; } else {