CVS: src/si/extras entitycheck.py,1.28,1.29
Mats Wichmann <[email protected]>
| Newsgroups | gmane.linux.lsb.implementation |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/lsb/src/si/extras
In directory sc8-pr-cvs1:/tmp/cvs-serv13685/si/extras
Modified Files:
entitycheck.py
Log Message:
Avoid integer overflow on older Python versions (newer Pythons
promote to long automatically)
Index: entitycheck.py
===================================================================
RCS file: /cvsroot/lsb/src/si/extras/entitycheck.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -r1.28 -r1.29
*** entitycheck.py 7 Feb 2003 23:05:14 -0000 1.28
--- entitycheck.py 20 Feb 2003 15:59:49 -0000 1.29
***************
*** 88,92 ****
so_far = block_count * block_size
if not so_far: return
! pct = so_far * 100 / total
# Work out remaining time: need transfer rate first
now = time.time()
--- 88,92 ----
so_far = block_count * block_size
if not so_far: return
! pct = so_far * 100L / total
# Work out remaining time: need transfer rate first
now = time.time()