diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-23 21:23:32 -0500 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-23 21:23:32 -0500 |
commit | 2f252d8f0ee0303db25a0a329f2325bec2ea3979 (patch) | |
tree | 2e2c7d70748bc17475f585c0f1406d623430891e /lib/ci/charts.rb | |
parent | 8d0332368fba65f167f2109daf8a2184d781082b (diff) | |
parent | 16ca3ee636a50c81674309bb95e067d3faf56bb6 (diff) | |
download | gitlab-ce-2f252d8f0ee0303db25a0a329f2325bec2ea3979.tar.gz |
Merge branch 'master' into improve-pipeline-design
Diffstat (limited to 'lib/ci/charts.rb')
-rw-r--r-- | lib/ci/charts.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ci/charts.rb b/lib/ci/charts.rb index d53bdcbd0f2..e1636636934 100644 --- a/lib/ci/charts.rb +++ b/lib/ci/charts.rb @@ -64,7 +64,8 @@ module Ci commits.each do |commit| @labels << commit.short_sha - @build_times << (commit.duration / 60) + duration = commit.duration || 0 + @build_times << (duration / 60) end end end |