no builds no pending
This commit is contained in:
parent
f6051d71d6
commit
e9e7c3788d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue