From af4e4dc8478ef3947b69686f8fe71c321d940da5 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 24 Jun 2008 17:21:18 -0700 Subject: [PATCH] storage: record latency stats in a flat dict, not nested, to conform to RIStatsProvider --- src/allmydata/storage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/allmydata/storage.py b/src/allmydata/storage.py index d5a406a0..cba2a92f 100644 --- 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): -- 2.45.2