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:
dba0ad3
)
storage: record latency stats in a flat dict, not nested, to conform to RIStatsProvider
author
Brian Warner
<warner@allmydata.com>
Wed, 25 Jun 2008 00:21:18 +0000
(17:21 -0700)
committer
Brian Warner
<warner@allmydata.com>
Wed, 25 Jun 2008 00:21:18 +0000
(17:21 -0700)
src/allmydata/storage.py
patch
|
blob
|
history
diff --git
a/src/allmydata/storage.py
b/src/allmydata/storage.py
index d5a406a0374e90701b0d70c7128e32164b6a25e8..cba2a92f69f6bddfa05c0c65e6ddb8d11fde4086 100644
(file)
--- a/
src/allmydata/storage.py
+++ b/
src/allmydata/storage.py
@@
-786,7
+786,9
@@
class StorageServer(service.MultiService, Referenceable):
stats = { 'storage_server.allocated': self.allocated_size(), }
if self.consumed is not None:
stats['storage_server.consumed'] = self.consumed
- stats['storage_server.latencies'] = self.get_latencies()
+ for category,ld in self.get_latencies().items():
+ for name,v in ld.items():
+ stats['storage_server.latencies.%s.%s' % (category, name)] = v
return stats
def allocated_size(self):