make age optional
This commit is contained in:
parent
a753d28064
commit
00382aeb90
2 changed files with 11 additions and 6 deletions
|
|
@ -1363,7 +1363,7 @@ class BuildArchTask(BaseBuildTask):
|
|||
weight is scaled from a minimum of 1.5 to a maximum of 6, based on
|
||||
the average duration of a build of this package.
|
||||
"""
|
||||
avg = self.session.getAverageBuildDuration(name)
|
||||
avg = self.session.getAverageBuildDuration(name, age=6)
|
||||
if not avg:
|
||||
return
|
||||
if avg < 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue