From 5b80ef9b622c64c222594c4c26e0450c0c95ab57 Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Tue, 8 Apr 2025 15:30:00 +0200 Subject: [PATCH] refactor: Improve metric help text and standardize comparison operator in KvmIdRoute --- cloud.go | 2 +- ui/src/routes/devices.$id.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud.go b/cloud.go index 3abab1c..516a0b1 100644 --- a/cloud.go +++ b/cloud.go @@ -76,7 +76,7 @@ var ( metricConnectionTotalPingCount = promauto.NewCounter( prometheus.CounterOpts{ Name: "jetkvm_connection_total_ping_count", - Help: "The total number of pings sent to the", + Help: "The total number of pings sent to the connection", }, ) metricConnectionSessionRequestCount = promauto.NewCounter( diff --git a/ui/src/routes/devices.$id.tsx b/ui/src/routes/devices.$id.tsx index fd4cc57..1a86a37 100644 --- a/ui/src/routes/devices.$id.tsx +++ b/ui/src/routes/devices.$id.tsx @@ -287,7 +287,7 @@ export default function KvmIdRoute() { if (ignoreOffer.current) return; // Set so we don't accept an answer while we're setting the remote description - isSettingRemoteAnswerPending.current = parsedMessage.type == "answer"; + isSettingRemoteAnswerPending.current = parsedMessage.type === "answer"; console.log( "[Websocket] Setting remote answer pending", isSettingRemoteAnswerPending.current,