]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
storage: record latency stats in a flat dict, not nested, to conform to RIStatsProvider
authorBrian Warner <warner@allmydata.com>
Wed, 25 Jun 2008 00:21:18 +0000 (17:21 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 25 Jun 2008 00:21:18 +0000 (17:21 -0700)
src/allmydata/storage.py

index d5a406a0374e90701b0d70c7128e32164b6a25e8..cba2a92f69f6bddfa05c0c65e6ddb8d11fde4086 100644 (file)
@@ -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):