mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 19:34:18 +00:00
control: add RIControlClient, fix some pyflakes warnings
This commit is contained in:
parent
a71d83bd8e
commit
d4020fa533
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user