projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8f3521
)
conflict reconciliation (part 1, stats gathering in helper)
author
robk-tahoe
<robk-tahoe@allmydata.com>
Fri, 28 Mar 2008 00:25:16 +0000
(17:25 -0700)
committer
robk-tahoe
<robk-tahoe@allmydata.com>
Fri, 28 Mar 2008 00:25:16 +0000
(17:25 -0700)
src/allmydata/offloaded.py
patch
|
blob
|
history
diff --git
a/src/allmydata/offloaded.py
b/src/allmydata/offloaded.py
index 00b2ee9c28a76c0d4281df80b66bba1e570428b0..751c94b111a7930509d6ca0e4308a92bf00c2933 100644
(file)
--- 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):