]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
storage: include reserved_space in stats
authorBrian Warner <warner@lothar.com>
Fri, 20 Feb 2009 21:29:20 +0000 (14:29 -0700)
committerBrian Warner <warner@lothar.com>
Fri, 20 Feb 2009 21:29:20 +0000 (14:29 -0700)
src/allmydata/storage/server.py

index a65801697f01668fcab1340992230e290cb0b218..7971113d6e81ddc98e0c19ef9dd0d1e4aa9b583c 100644 (file)
@@ -135,6 +135,7 @@ class StorageServer(service.MultiService, Referenceable):
         # remember: RIStatsProvider requires that our return dict
         # contains numeric values.
         stats = { 'storage_server.allocated': self.allocated_size(), }
+        stats["storage_server.reserved_space"] = self.reserved_space
         for category,ld in self.get_latencies().items():
             for name,v in ld.items():
                 stats['storage_server.latencies.%s.%s' % (category, name)] = v