1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-11-02 08:34:44 +00:00

resolves #28: compensate for server/client clock skew

This commit is contained in:
Oliver Giles
2018-02-03 16:52:46 +02:00
parent 46efb07285
commit 30f2203a3b
3 changed files with 15 additions and 2 deletions

View File

@@ -169,6 +169,7 @@ void Laminar::sendStatus(LaminarClient* client) {
Json j;
j.set("type", "status");
j.set("title", getenv("LAMINAR_TITLE") ?: "Laminar");
j.set("time", time(nullptr));
j.startObject("data");
if(client->scope.type == MonitorScope::RUN) {
db->stmt("SELECT queuedAt,startedAt,completedAt, result, reason FROM builds WHERE name = ? AND number = ?")