[Zodb-checkins] CVS: ZODB3/ZEO - stats.py:1.6
Guido van Rossum
guido@python.org
Wed, 4 Sep 2002 13:57:34 -0400
Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv10560
Modified Files:
stats.py
Log Message:
Don't use a 2.2-ism in U64.
=== ZODB3/ZEO/stats.py 1.5 => 1.6 ===
--- ZODB3/ZEO/stats.py:1.5 Wed Sep 4 13:45:31 2002
+++ ZODB3/ZEO/stats.py Wed Sep 4 13:57:34 2002
@@ -160,7 +160,8 @@
explain.get(code) or "*** unknown code ***")
def U64(s):
- return struct.unpack(">Q", s)[0]
+ h, v = unpack(">II", s)
+ return (long(h) << 32) + v
def addcommas(n):
sign, s = '', str(n)