Skip to content

Commit 9e07bb4

Browse files
committed
fix: stop activity bump if no tracked sessions
1 parent 27f5ff2 commit 9e07bb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/workspacestats/reporter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ func (r *Reporter) ReportAgentStats(ctx context.Context, now time.Time, workspac
136136
}, stats.Metrics)
137137
}
138138

139-
// if no active connections we do not bump activity
140-
if stats.ConnectionCount == 0 {
139+
// if no active sessions we do not bump activity
140+
if stats.SessionCountJetbrains == 0 && stats.SessionCountVscode == 0 && stats.SessionCountReconnectingPty == 0 && stats.SessionCountSsh == 0 {
141141
return nil
142142
}
143143

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy