jenkinsci/jenkins — pull request #837 by kutzi (2013-07-06 13:22:19+00:00)
Title: Change to the estimated duratrion calculation to prevent performance issues with lazy build loading

Loading the last 3 successful builds may be very expensive in certain rare, but possible situations (all newer builds failed, only some very old builds were successful).

Go only up to 6 build into the past for calculating the estimated duration.
Also take failed builds into account, if we don't find any successful ones.