Skip to content

Commit b763703

Browse files
committed
refactor: Improve metric help text and standardize comparison operator in KvmIdRoute
1 parent de859e6 commit b763703

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cloud.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var (
7575
metricConnectionTotalPingCount = promauto.NewCounter(
7676
prometheus.CounterOpts{
7777
Name: "jetkvm_connection_total_ping_count",
78-
Help: "The total number of pings sent to the",
78+
Help: "The total number of pings sent to the connection",
7979
},
8080
)
8181
metricConnectionSessionRequestCount = promauto.NewCounter(

ui/src/routes/devices.$id.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export default function KvmIdRoute() {
287287
if (ignoreOffer.current) return;
288288

289289
// Set so we don't accept an answer while we're setting the remote description
290-
isSettingRemoteAnswerPending.current = parsedMessage.type == "answer";
290+
isSettingRemoteAnswerPending.current = parsedMessage.type === "answer";
291291
console.log(
292292
"[Websocket] Setting remote answer pending",
293293
isSettingRemoteAnswerPending.current,

0 commit comments

Comments
 (0)