no builds no pending

This commit is contained in:
Lin Jen-Shin 2016-08-29 23:40:15 +08:00
parent f6051d71d6
commit e9e7c3788d

View file

@ -82,6 +82,8 @@ module Gitlab
end end
def process_pending_duration(segments, duration) def process_pending_duration(segments, duration)
return 0 if segments.empty?
total = segments.last.last - segments.first.first total = segments.last.last - segments.first.first
total - duration total - duration
end end