]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/web/root.py
storage: replace sizelimit with reserved_space, make the stats 'disk_avail' number...
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / web / root.py
index 115feb7878eafb7cf8c8fa47c360313a553378ff..603c27ffc52bb8bcf6ed4ce9114ff1e6aec82ec0 100644 (file)
@@ -153,10 +153,8 @@ class Root(rend.Page):
             ss = client.getServiceNamed("storage")
             allocated_s = abbreviate_size(ss.allocated_size())
             allocated = "about %s allocated" % allocated_s
-            sizelimit = "no size limit"
-            if ss.sizelimit is not None:
-                sizelimit = "size limit is %s" % abbreviate_size(ss.sizelimit)
-            ul[T.li["Storage Server: %s, %s" % (allocated, sizelimit)]]
+            reserved = "%s reserved" % abbreviate_size(ss.reserved_space)
+            ul[T.li["Storage Server: %s, %s" % (allocated, reserved)]]
         except KeyError:
             ul[T.li["Not running storage server"]]