Log metrics update duration.

* bin/cuirass.in (main): Log metrics update duration.
This commit is contained in:
Mathieu Othacehe 2020-09-16 15:58:14 +02:00
parent 8fc4794b30
commit 822dbb366d
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 3 additions and 1 deletions

View File

@ -193,7 +193,9 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@"
'metrics exit-channel
(lambda ()
(while #t
(db-update-metrics)
(with-time-logging
"Metrics update"
(db-update-metrics))
(sleep 3600)))))
(spawn-fiber