refactor: Improve metric help text and standardize comparison operator in KvmIdRoute

This commit is contained in:
Adam Shiervani 2025-04-08 15:30:00 +02:00 committed by Siyuan Miao
parent 0e61d9837a
commit 5b80ef9b62
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -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,