no builds no pending

This commit is contained in:
Lin Jen-Shin 2016-08-29 23:40:15 +08:00
parent f6051d71d6
commit e9e7c3788d
1 changed files with 2 additions and 0 deletions

View File

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