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)