diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-20 12:07:34 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:37 +0100 |
commit | ecbd5ca720ce28284280dc60013b3f60e9dd934f (patch) | |
tree | 00759b5193c3aeea2f7213a8df8596f23ad1cbc5 /bitbake/lib/bb/ui | |
parent | ef1de9ecaf73e28234d284b79ec45e084d0f0c53 (diff) | |
download | openembedded-core-ecbd5ca720ce28284280dc60013b3f60e9dd934f.tar.gz openembedded-core-ecbd5ca720ce28284280dc60013b3f60e9dd934f.tar.bz2 openembedded-core-ecbd5ca720ce28284280dc60013b3f60e9dd934f.zip |
3.0 prep
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r-- | bitbake/lib/bb/ui/ncurses.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/ncurses.py b/bitbake/lib/bb/ui/ncurses.py index 81dcb1998c..3fed4c58a8 100644 --- a/bitbake/lib/bb/ui/ncurses.py +++ b/bitbake/lib/bb/ui/ncurses.py @@ -44,6 +44,8 @@ """ +from __future__ import division + import os, sys, curses, itertools, time import bb import xmlrpclib @@ -199,8 +201,8 @@ class NCursesUI: main_left = 0 main_top = 0 - main_height = ( height / 3 * 2 ) - main_width = ( width / 3 ) * 2 + main_height = ( height // 3 * 2 ) + main_width = ( width // 3 ) * 2 clo_left = main_left clo_top = main_top + main_height clo_height = height - main_height - main_top - 1 @@ -266,7 +268,7 @@ class NCursesUI: mw.appendText("Parsing finished. %d cached, %d parsed, %d skipped, %d masked." % ( event.cached, event.parsed, event.skipped, event.masked )) else: - mw.setStatus("Parsing: %s (%04d/%04d) [%2d %%]" % ( next(parsespin), x, y, x*100/y ) ) + mw.setStatus("Parsing: %s (%04d/%04d) [%2d %%]" % ( next(parsespin), x, y, x*100//y ) ) # if isinstance(event, bb.build.TaskFailed): # if event.logfile: # if data.getVar("BBINCLUDELOGS", d): |