diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-08-15 18:47:26 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-08-15 18:47:26 +0800 |
commit | 47ed793af9430eb9dd6b2ae957e16d07cdd360b4 (patch) | |
tree | 01b74f7972a826008414cc18111a92cd4bd94b9c /app/models/ci | |
parent | b5d1e6341b67206de8b90ef693723434368363cf (diff) | |
download | gitlab-ce-47ed793af9430eb9dd6b2ae957e16d07cdd360b4.tar.gz |
Update duration for wall-clock time
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/pipeline.rb | 2 |
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 |