[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Fix server bucket update code



Update of /home/minion/cvsroot/src/minion/lib/mixminion/server
In directory moria.mit.edu:/tmp/cvs-serv28040/lib/mixminion/server

Modified Files:
	MMTPServer.py 
Log Message:
Fix server bucket update code

Index: MMTPServer.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/MMTPServer.py,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- MMTPServer.py	6 Mar 2004 05:10:56 -0000	1.82
+++ MMTPServer.py	7 Mar 2004 21:27:27 -0000	1.83
@@ -190,7 +190,7 @@
         if bwpt is None:
             self.bucket = None
         else:
-            bucket = self.bucket + bwpt
+            bucket = (self.bucket or 0) + bwpt
             if bucket > self.maxBucket:
                 self.bucket = self.maxBucket
             else: