build might not start yet

This commit is contained in:
Lin Jen-Shin 2016-08-30 02:53:53 +08:00
parent e9e7c3788d
commit 7e32e2ef20
1 changed files with 1 additions and 1 deletions

View File

@ -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)