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
Pipeline #25860 passed with stage
in 1 minute and 13 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment