#687648 from Robert Schuppenies: use classic division.

This commit is contained in:
Andrew M. Kuchling 2008-09-13 01:43:28 +00:00
parent e91fcbdf69
commit 2a9b9cbea0
12 changed files with 33 additions and 33 deletions

View file

@ -83,7 +83,7 @@ def makestatus(name, thisuser):
lines.append(line)
#
if totaljobs:
line = '%d K' % ((totalbytes+1023)/1024)
line = '%d K' % ((totalbytes+1023)//1024)
if totaljobs <> len(users):
line = line + ' (%d jobs)' % totaljobs
if len(users) == 1:
@ -95,7 +95,7 @@ def makestatus(name, thisuser):
line = line + ' (%s first)' % thisuser
else:
line = line + ' (%d K before %s)' % (
(aheadbytes+1023)/1024, thisuser)
(aheadbytes+1023)//1024, thisuser)
lines.append(line)
#
sts = pipe.close()