MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetNumSSHHasConnected

Function GetNumSSHHasConnected

pkg/remote/conncontroller/conncontroller.go:122–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120}
121
122func GetNumSSHHasConnected() int {
123 globalLock.Lock()
124 defer globalLock.Unlock()
125
126 var numConnected int
127 for _, conn := range clientControllerMap {
128 if conn.LastConnectTime > 0 {
129 numConnected++
130 }
131 }
132 return numConnected
133}
134
135func (conn *SSHConn) DeriveConnStatus() wshrpc.ConnStatus {
136 conn.lock.Lock()

Callers 2

updateTelemetryCountsFunction · 0.92
beforeSendActivityUpdateFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected