]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
control: add RIControlClient, fix some pyflakes warnings
authorBrian Warner <warner@lothar.com>
Thu, 8 Mar 2007 02:20:27 +0000 (19:20 -0700)
committerBrian Warner <warner@lothar.com>
Thu, 8 Mar 2007 02:20:27 +0000 (19:20 -0700)
src/allmydata/control.py
src/allmydata/node.py

index 3f77e6b25909c20e7dc2228f4ab14ca3a6dd8c88..4c4ea1eb6b15dfddb95643f224cc9431a27d318e 100644 (file)
@@ -6,6 +6,7 @@ from allmydata.interfaces import RIControlClient
 
 
 class ControlServer(Referenceable, service.Service):
+    implements(RIControlClient)
 
     def remote_upload_from_file_to_uri(self, filename):
         uploader = self.parent.getServiceNamed("uploader")
@@ -24,6 +25,7 @@ class ControlServer(Referenceable, service.Service):
                       "VmSize",
                       #"VmHWM",
                       "VmData")
+        stats = {}
         for line in open("/proc/self/status", "r").readlines():
             name, right = line.split(":",2)
             if name in stat_names:
index 6933c3bbc66b308ee36a379ce229f7ba663d769b..db45ac9324988bdcee00ac4b037e3dfd2380e1dc 100644 (file)
@@ -2,7 +2,6 @@
 from twisted.application import service
 import os.path
 from foolscap import Tub
-from foolscap.eventual import fireEventually
 from allmydata.util.iputil import get_local_addresses
 from allmydata.util import idlib
 from twisted.python import log