Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit70b093f

Browse files
authored
fix: filter session count sums bycreated_at (#6529)
Fixes the session totals being waaaaay too high!
1 parent1cc10f2 commit70b093f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎coderd/database/queries.sql.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/database/queries/workspaceagentstats.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ WITH agent_stats AS (
7070
coalesce(SUM(session_count_reconnecting_pty),0)::bigintAS session_count_reconnecting_pty
7171
FROM (
7272
SELECT*, ROW_NUMBER() OVER(PARTITION BY agent_idORDER BY created_atDESC)AS rn
73-
FROM workspace_agent_stats
73+
FROM workspace_agent_statsWHERE created_at> $1
7474
)AS aWHEREa.rn=1
7575
)
7676
SELECT*FROM agent_stats, latest_agent_stats;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp