mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
#687648 from Robert Schuppenies: use classic division.
This commit is contained in:
parent
e91fcbdf69
commit
2a9b9cbea0
12 changed files with 33 additions and 33 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue