summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-04-23 13:45:26 +0300
committerValery Sizov <vsv2711@gmail.com>2015-04-23 13:52:34 +0300
commit1e5e09986763d2f7abed0fb2b271574fe8e31236 (patch)
tree1d843b563e2a94abb3941537c007f0211f1a8ad9 /app/models
parent5be8be7d1965476ced2841dd4c3592ba8db84423 (diff)
downloadgitlab-ci-1e5e09986763d2f7abed0fb2b271574fe8e31236.tar.gz
fix duration visualisation
Diffstat (limited to 'app/models')
-rw-r--r--app/models/commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 6817a9e..bfc7878 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -190,7 +190,7 @@ class Commit < ActiveRecord::Base
end
def finished_at
- @finished_at ||= builds.order('finished_at ASC').first.try(:finished_at)
+ @finished_at ||= builds.order('finished_at DESC').first.try(:finished_at)
end
def coverage