Skip to content

Commit 5b80ef9

Browse files
adamshiervaniym
authored andcommitted
refactor: Improve metric help text and standardize comparison operator in KvmIdRoute
1 parent 0e61d98 commit 5b80ef9

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
@@ -76,7 +76,7 @@ var (
7676
metricConnectionTotalPingCount = promauto.NewCounter(
7777
prometheus.CounterOpts{
7878
Name: "jetkvm_connection_total_ping_count",
79-
Help: "The total number of pings sent to the",
79+
Help: "The total number of pings sent to the connection",
8080
},
8181
)
8282
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)