#245: fixed BuildList#average_build_time method

This commit is contained in:
Vokhmin Alexey V 2013-07-31 17:26:51 +04:00
parent 3de9ce0b67
commit b69a238a3a
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ class BuildList < ActiveRecord::Base
end
def average_build_time
project.project_statistics.where(:arch_id => arch_id).first || 0
project.project_statistics.where(:arch_id => arch_id).first.try(:average_build_time) || 0
end
def self.human_status(status)