mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
web /statistics : show 0 instead of None for mutable files
This commit is contained in:
parent
1ce3b77dde
commit
166e68f2a3
@ -961,13 +961,13 @@ class Statistics(rend.Page):
|
||||
(files, bytes, abbreviate_size(bytes)))
|
||||
|
||||
def render_publishes(self, ctx, data):
|
||||
files = data["counters"].get("mutable.files_published")
|
||||
files = data["counters"].get("mutable.files_published", 0)
|
||||
bytes = data["counters"].get("mutable.bytes_published", 0)
|
||||
return "%s files / %s bytes (%s)" % (files, bytes,
|
||||
abbreviate_size(bytes))
|
||||
|
||||
def render_retrieves(self, ctx, data):
|
||||
files = data["counters"].get("mutable.files_retrieved")
|
||||
files = data["counters"].get("mutable.files_retrieved", 0)
|
||||
bytes = data["counters"].get("mutable.bytes_retrieved", 0)
|
||||
return "%s files / %s bytes (%s)" % (files, bytes,
|
||||
abbreviate_size(bytes))
|
||||
|
Loading…
x
Reference in New Issue
Block a user