Skip to content
Snippets Groups Projects
Commit 4fe3647f authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Merge branch 'zj-improve-runner-stats' into 'master'

Update range to last 24 hours, not current day

See merge request !32
parents 7d3beed2 30c8028d
No related branches found
No related tags found
1 merge request!32Update range to last 24 hours, not current day
Pipeline #
Loading
Loading
@@ -19,7 +19,7 @@ module GitLab
personal_snippets: { select: :snippets, where: "type='PersonalSnippet'" },
project_snippets: { select: :snippets, where: "type='ProjectSnippet'" },
users: { select: :users },
active_runners: { select: :ci_runners, where: "active=true AND contacted_at > current_date - 1" }
active_runners: { select: :ci_runners, where: "active=true AND contacted_at >= NOW() - '1 day'::INTERVAL" }
}.freeze
 
def run
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment