[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Make pychecker a little happier, and fix some bugs in t...
Update of /home/minion/cvsroot/src/minion/lib/mixminion/server
In directory moria.mit.edu:/tmp/cvs-serv8533/lib/mixminion/server
Modified Files:
Pinger.py
Log Message:
Make pychecker a little happier, and fix some bugs in the process.
Index: Pinger.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/Pinger.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Pinger.py 7 Dec 2004 01:26:38 -0000 1.10
+++ Pinger.py 7 Dec 2004 01:44:31 -0000 1.11
@@ -23,8 +23,6 @@
import cPickle
import operator
import os
-import re
-import string
import struct
import sys
import threading
@@ -195,7 +193,6 @@
self._loadServers()
def _createAllTables(self):
- cur = self.cursor
self.lock.acquire()
try:
# FFFF This is terrible DB design. It's not normalized by
@@ -574,7 +571,7 @@
latent = allLatencies[floorDiv(len(allLatencies),2)]
else:
latent = 0
- wsent = wreceived = 0.0
+ wsent = wrcvd = 0.0
for s, r, w in zip(perTotalWeights, perTotalWeighted, self._WEIGHT_AGE):
wsent += s*w
wrcvd += r*w
@@ -709,11 +706,11 @@
self.pingLog = pingLog
self.keyring = keyring
def scheduleAllPings(self, now=None):
- raise NotImplemented
+ raise NotImplemented()
def _getPeriodStart(self, t):
- raise NotImplemented
+ raise NotImplemented()
def _getPingInterval(self, path):
- raise NotImplemented
+ raise NotImplemented()
def _schedulePing(self,path,now=None):
if now is None: now = int(time.time())
periodStart = self._getPeriodStart(now)