From f47ebd0814de5861b06ad1c5264554d6e8e1618b Mon Sep 17 00:00:00 2001 From: robk-tahoe Date: Thu, 27 Mar 2008 17:25:16 -0700 Subject: [PATCH] conflict reconciliation (part 1, stats gathering in helper) --- src/allmydata/offloaded.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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): -- 2.45.2