From: robk-tahoe Date: Fri, 28 Mar 2008 00:25:16 +0000 (-0700) Subject: conflict reconciliation (part 1, stats gathering in helper) X-Git-Url: https://git.rkrishnan.org/install.html?a=commitdiff_plain;h=f47ebd0814de5861b06ad1c5264554d6e8e1618b;p=tahoe-lafs%2Ftahoe-lafs.git conflict reconciliation (part 1, stats gathering in helper) --- diff --git a/src/allmydata/offloaded.py b/src/allmydata/offloaded.py index 00b2ee9c..751c94b1 100644 --- a/src/allmydata/offloaded.py +++ b/src/allmydata/offloaded.py @@ -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):