From: Ian Jackson <ian.jack...@eu.citrix.com> Some jobs runs steps in parallel. Do not add up all the individual step durations. Instead, calculate the duration as the time between first step start and last step finish.
Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com> Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Osstest/Executive.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/Executive.pm b/Osstest/Executive.pm index 7e31b35..7b40307 100644 --- a/Osstest/Executive.pm +++ b/Osstest/Executive.pm @@ -1068,7 +1068,7 @@ END FROM steps WHERE flight=? AND job=? ) - SELECT sum(finished-started) + SELECT max(finished)-min(started) AS duration FROM tsteps WHERE step != 'ts-hosts-allocate' -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel