From 9989e6c0f45a3b2723206af32acdf76bb1994dd2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 7 Dec 2016 16:10:21 +0100 Subject: [PATCH] Get exact build start/stop times from the remote --- src/hydra-queue-runner/build-remote.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index cf4de781..18e6e825 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -299,6 +299,14 @@ void State::buildRemote(ref destStore, if (GET_PROTOCOL_MINOR(remoteVersion) >= 3) { result.timesBuilt = readInt(from); result.isNonDeterministic = readInt(from); + auto start = readInt(from); + auto stop = readInt(from); + if (start && start) { + /* Note: this represents the duration of a single + round, rather than all rounds. */ + result.startTime = start; + result.stopTime = stop; + } } switch ((BuildResult::Status) res) { case BuildResult::Built: