From 6bdb0ca8d3377a30fd7690cc908d10a8c187b538 Mon Sep 17 00:00:00 2001 From: Erisa A Date: Thu, 26 Sep 2024 17:48:57 +0100 Subject: [PATCH] Send the right latency to Kuma --- Events/HeartbeatEvent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Events/HeartbeatEvent.cs b/Events/HeartbeatEvent.cs index bb4d4e25..42e0c384 100644 --- a/Events/HeartbeatEvent.cs +++ b/Events/HeartbeatEvent.cs @@ -12,7 +12,7 @@ public static async Task OnHeartbeat(IGatewayClient client) HttpResponseMessage response; try { - response = await Program.httpClient.GetAsync(Environment.GetEnvironmentVariable("UPTIME_KUMA_PUSH_URL") + client.Ping.TotalMicroseconds); + response = await Program.httpClient.GetAsync(Environment.GetEnvironmentVariable("UPTIME_KUMA_PUSH_URL") + client.Ping.Milliseconds); } catch (Exception ex) {