diff options
author | 2010-06-20 12:07:34 -0700 | |
---|---|---|
committer | 2010-06-21 08:05:12 -0700 | |
commit | 61780379d4512d8a803f19b3af4b19152e246cd6 (patch) | |
tree | afda8c9ce8c8500ec6eaba5aceb6ac57a4635069 /lib/bb/ui/ncurses.py | |
parent | 219be63895b20daa646066ae52872ce90a9da1e8 (diff) | |
download | openembedded-core-contrib-61780379d4512d8a803f19b3af4b19152e246cd6.tar.gz |
3.0 prep
Diffstat (limited to 'lib/bb/ui/ncurses.py')
-rw-r--r-- | lib/bb/ui/ncurses.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/bb/ui/ncurses.py b/lib/bb/ui/ncurses.py index 81dcb1998c..3fed4c58a8 100644 --- a/lib/bb/ui/ncurses.py +++ b/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): |