summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-09-05 17:55:30 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-09-05 17:55:30 +0800
commitd071f61b0de12a57012ed1c77634b54fa83615a7 (patch)
tree44c11065b4104a59ec68fd7d1a9753504d91a7c6 /app
parent7aaed299eb744e524a1597ceed923c14b556ef20 (diff)
downloadgitlab-ce-d071f61b0de12a57012ed1c77634b54fa83615a7.tar.gz
Forget about pending duration for now, need more discussion
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/pipeline.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index de7709c36c4..4092205578e 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -260,8 +260,7 @@ module Ci
def update_duration
return unless started_at
- self.duration, self.pending_duration =
- Gitlab::Ci::PipelineDuration.from_pipeline(self)
+ self.duration = Gitlab::Ci::PipelineDuration.from_pipeline(self)
end
def execute_hooks