# output when we want
broken_table = ""
- builds = self.buildfarm.get_last_builds()
+ builds = self.buildfarm.get_summary_builds(min_age=time.time() - (7 * 24 * 60 * 60))
- for build in builds:
- host_count[build.tree]+=1
- status = build.status()
+ for tree, status in builds:
+ host_count[tree]+=1
if status.failed:
- broken_count[build.tree]+=1
+ broken_count[tree]+=1
if "panic" in status.other_failures:
- panic_count[build.tree]+=1
+ panic_count[tree]+=1
return (host_count, broken_count, panic_count)
def render_text(self, myself):