aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Queue/Switchboard.py
diff options
context:
space:
mode:
authorbwarsaw <>2003-04-20 04:02:13 +0000
committerbwarsaw <>2003-04-20 04:02:13 +0000
commit04192d3afe33bcfd72f64bacaab4e70c627268f3 (patch)
treeed48393d475c6ad099ab27d8f016fd15e788686d /Mailman/Queue/Switchboard.py
parent866b613202dd6b94091c7fec7a58d1878ec0f682 (diff)
downloadmailman2-04192d3afe33bcfd72f64bacaab4e70c627268f3.tar.gz
mailman2-04192d3afe33bcfd72f64bacaab4e70c627268f3.tar.xz
mailman2-04192d3afe33bcfd72f64bacaab4e70c627268f3.zip
Backporting from the trunk.
Diffstat (limited to '')
-rw-r--r--Mailman/Queue/Switchboard.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Queue/Switchboard.py b/Mailman/Queue/Switchboard.py
index 9a254039..77179fcf 100644
--- a/Mailman/Queue/Switchboard.py
+++ b/Mailman/Queue/Switchboard.py
@@ -72,8 +72,8 @@ class _Switchboard:
self.__upper = None
# BAW: test performance and end-cases of this algorithm
if numslices <> 1:
- self.__lower = (shamax * slice) / numslices
- self.__upper = (shamax * (slice+1)) / numslices
+ self.__lower = ((shamax+1) * slice) / numslices
+ self.__upper = (((shamax+1) * (slice+1)) / numslices) - 1
def whichq(self):
return self.__whichq
@@ -139,7 +139,7 @@ class _Switchboard:
# plain text. Second, the actual message file. However, we want to
# first unlink the message file and then the .db file, because the
# qrunner only cues off of the .db file
- msg = data = None
+ msg = None
try:
data = self._ext_read(dbfile)
os.unlink(dbfile)