summaryrefslogtreecommitdiff
path: root/tb3
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2013-08-03 17:37:26 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2013-08-03 17:37:26 +0200
commit3887fa33878487d3e514ac897de94b03d7cd346d (patch)
treec7e55e727390b8b35877b7b77cc824414ab64b5b /tb3
parente2d5a9c563fe89152a89dadfc26b2fb6cc7aa667 (diff)
another tweak for python3
Diffstat (limited to 'tb3')
-rwxr-xr-xtb3/tb3-local-client2
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)