summaryrefslogtreecommitdiff
path: root/app/models/ci/pipeline.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-15 18:47:26 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-15 18:47:26 +0800
commit47ed793af9430eb9dd6b2ae957e16d07cdd360b4 (patch)
tree01b74f7972a826008414cc18111a92cd4bd94b9c /app/models/ci/pipeline.rb
parentb5d1e6341b67206de8b90ef693723434368363cf (diff)
downloadgitlab-ce-47ed793af9430eb9dd6b2ae957e16d07cdd360b4.tar.gz
Update duration for wall-clock time
Diffstat (limited to 'app/models/ci/pipeline.rb')
-rw-r--r--app/models/ci/pipeline.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index fb88f6d811d..581acdf8e51 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -256,7 +256,7 @@ module Ci
end
def update_duration
- self.duration = statuses.latest.duration
+ self.duration = calculate_duration
end
def execute_hooks