diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2013-08-03 17:37:26 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2013-08-03 17:37:26 +0200 |
commit | 3887fa33878487d3e514ac897de94b03d7cd346d (patch) | |
tree | c7e55e727390b8b35877b7b77cc824414ab64b5b /tb3 | |
parent | e2d5a9c563fe89152a89dadfc26b2fb6cc7aa667 (diff) |
another tweak for python3
Diffstat (limited to 'tb3')
-rwxr-xr-x | tb3/tb3-local-client | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tb3/tb3-local-client b/tb3/tb3-local-client index 6665201..57fad5c 100755 --- a/tb3/tb3-local-client +++ b/tb3/tb3-local-client @@ -54,7 +54,7 @@ class LocalClient: estimated_buildtime = float(120) if (proposal['repo'], proposal['branch'], proposal['platform']) in self.buildtimes: scenario_buildtimes = self.buildtimes[ (proposal['repo'], proposal['branch'], proposal['platform']) ] - estimated_buildtime = scenario_buildtimes[len(scenario_buildtimes)/2] + estimated_buildtime = scenario_buildtimes[int(len(scenario_buildtimes)/2)] self.tb3(repo=proposal['repo'], branch=proposal['branch'], platform=proposal['platform'], set_commit_running=proposal['commit'], estimated_duration=estimated_buildtime) def run_build(self, proposal): buildtime = int(time.time()*100) |