Skip to content
Snippets Groups Projects
Unverified Commit d0a2235e authored by Mathieu Othacehe's avatar Mathieu Othacehe
Browse files

metrics: Change 'builds-per-day computation.

* src/cuirass/metrics.scm (db-builds-previous-day): Only take into account the
builds that are created and processed during the previous day.
parent f011d874
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,9 @@ FROM Evaluations WHERE specification = " spec
"Return the builds count of the previous day."
(with-db-worker-thread db
(let ((rows (sqlite-exec db "SELECT COUNT(*) from Builds
WHERE date(stoptime, 'unixepoch') = date('now', '-1 day');")))
WHERE date(timestamp, 'unixepoch') = date('now', '-1 day') AND
date(stoptime, 'unixepoch') = date('now', '-1 day');")))
(and=> (expect-one-row rows) (cut vector-ref <> 0)))))
(and=> (expect-one-row rows) (cut vector-ref <> 0)))))
(define (db-pending-builds _)
......
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