mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-25 23:51:07 +00:00
Stringify numbers
This commit is contained in:
parent
c44a167a66
commit
048840ac99
@ -702,45 +702,48 @@ class DeepCheckAndRepairResultsRendererElement(Element, ResultsBase, ReloadMixin
|
|||||||
def root_storage_index(self, req, tag):
|
def root_storage_index(self, req, tag):
|
||||||
return self.monitor.get_status().get_root_storage_index_string()
|
return self.monitor.get_status().get_root_storage_index_string()
|
||||||
|
|
||||||
|
def _get_counter(self, name):
|
||||||
|
return str(self.monitor.get_status().get_counters().get(name))
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def objects_checked(self, req, tag):
|
def objects_checked(self, req, tag):
|
||||||
return self.monitor.get_status().get_counters()["count-objects-checked"]
|
return self._get_counter("count-objects-checked")
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def objects_healthy(self, req, tag):
|
def objects_healthy(self, req, tag):
|
||||||
return self.monitor.get_status().get_counters()["count-objects-healthy-pre-repair"]
|
return self._get_counter("count-objects-healthy-pre-repair")
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def objects_unhealthy(self, req, tag):
|
def objects_unhealthy(self, req, tag):
|
||||||
return self.monitor.get_status().get_counters()["count-objects-unhealthy-pre-repair"]
|
return self._get_counter("count-objects-unhealthy-pre-repair")
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def corrupt_shares(self, req, tag):
|
def corrupt_shares(self, req, tag):
|
||||||
return self.monitor.get_status().get_counters()["count-corrupt-shares-pre-repair"]
|
return self._get_counter("count-corrupt-shares-pre-repair")
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def repairs_attempted(self, req, tag):
|
def repairs_attempted(self, req, tag):
|
||||||
return self.monitor.get_status().get_counters()["count-repairs-attempted"]
|
return self._get_counter("count-repairs-attempted")
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def repairs_successful(self, req, tag):
|
def repairs_successful(self, req, tag):
|
||||||
return self.monitor.get_status().get_counters()["count-repairs-successful"]
|
return self._get_counter("count-repairs-successful")
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def repairs_unsuccessful(self, req, tag):
|
def repairs_unsuccessful(self, req, tag):
|
||||||
return self.monitor.get_status().get_counters()["count-repairs-unsuccessful"]
|
return self._get_counter("count-repairs-unsuccessful")
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def objects_healthy_post(self, req, tag):
|
def objects_healthy_post(self, req, tag):
|
||||||
return self.monitor.get_status().get_counters()["count-objects-healthy-post-repair"]
|
return self._get_counter("count-objects-healthy-post-repair")
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def objects_unhealthy_post(self, req, tag):
|
def objects_unhealthy_post(self, req, tag):
|
||||||
return self.monitor.get_status().get_counters()["count-objects-unhealthy-post-repair"]
|
return self._get_counter("count-objects-unhealthy-post-repair")
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def corrupt_shares_post(self, req, tag):
|
def corrupt_shares_post(self, req, tag):
|
||||||
return self.monitor.get_status().get_counters()["count-corrupt-shares-post-repair"]
|
return self._get_counter("count-corrupt-shares-post-repair")
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def pre_repair_problems_p(self, req, tag):
|
def pre_repair_problems_p(self, req, tag):
|
||||||
|
Loading…
Reference in New Issue
Block a user