From 7e32e2ef20feb9c2bbc1b1504cc56c9185621c86 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Tue, 30 Aug 2016 02:53:53 +0800 Subject: [PATCH] build might not start yet --- lib/gitlab/ci/pipeline_duration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/ci/pipeline_duration.rb b/lib/gitlab/ci/pipeline_duration.rb index b9d0006182e..03bf7fabc99 100644 --- a/lib/gitlab/ci/pipeline_duration.rb +++ b/lib/gitlab/ci/pipeline_duration.rb @@ -12,7 +12,7 @@ module Gitlab now = Time.now segments = builds.map do |b| - Segment.new(b.started_at, b.finished_at || now) + Segment.new(b.started_at || now, b.finished_at || now) end new(segments)