[Zodb-checkins] CVS: Releases/Zope/lib/python/ZEO -
simul.py:1.12.8.2.18.18
Evan Simpson
evan at 4-am.com
Fri Jan 16 13:39:14 EST 2004
Update of /cvs-repository/Releases/Zope/lib/python/ZEO
In directory cvs.zope.org:/tmp/cvs-serv18593/lib/python/ZEO
Modified Files:
Tag: Zope-2_6-branch
simul.py
Log Message:
Non-Python 2.1-compatible division operator "//" crept into 2.6 branch.
=== Releases/Zope/lib/python/ZEO/simul.py 1.12.8.2.18.17 => 1.12.8.2.18.18 ===
--- Releases/Zope/lib/python/ZEO/simul.py:1.12.8.2.18.17 Sat Dec 6 17:59:28 2003
+++ Releases/Zope/lib/python/ZEO/simul.py Fri Jan 16 13:39:12 2004
@@ -880,7 +880,7 @@
# XXX need a better min than 1?
## print "adapt+", max(1, self.lruB_size // self.fifoB_size)
- delta = max(1, self.lruB_size // max(1, self.fifoB_size))
+ delta = max(1, self.lruB_size / max(1, self.fifoB_size))
self.p += delta * self.walk_factor
if self.p > self.cachelimit:
self.p = self.cachelimit
@@ -902,7 +902,7 @@
# XXX need a better min than 1?
## print "adapt-", max(1, self.fifoB_size // self.lruB_size)
- delta = max(1, self.fifoB_size // max(1, self.lruB_size))
+ delta = max(1, self.fifoB_size / max(1, self.lruB_size))
self.p -= delta * self.walk_factor
if self.p < 0:
self.p = 0
More information about the Zodb-checkins
mailing list