mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
fix: only update last_used_at when connection count > 0 (#10808)
This commit is contained in:
@ -573,6 +573,10 @@ type Stats struct {
|
||||
Metrics []AgentMetric `json:"metrics"`
|
||||
}
|
||||
|
||||
func (s Stats) SessionCount() int64 {
|
||||
return s.SessionCountVSCode + s.SessionCountJetBrains + s.SessionCountReconnectingPTY + s.SessionCountSSH
|
||||
}
|
||||
|
||||
type AgentMetricType string
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user