conflict reconciliation (part 1, stats gathering in helper)

This commit is contained in:
robk-tahoe 2008-03-27 17:25:16 -07:00
parent d8f3521a02
commit f47ebd0814

View File

@ -474,6 +474,14 @@ class Helper(Referenceable, service.MultiService):
fileutil.make_dirs(self._chk_incoming)
fileutil.make_dirs(self._chk_encoding)
self._active_uploads = {}
if stats_provider:
stats_provider.register_producer(self)
self._stats = {"CHK_upload_requests": 0,
"CHK_upload_already_present": 0,
"CHK_upload_need_upload": 0,
"CHK_fetched_bytes": 0,
"CHK_encoded_bytes": 0,
}
service.MultiService.__init__(self)
def setServiceParent(self, parent):