mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-03 09:41:09 +00:00
Use a helper method to get monitor counter
This commit is contained in:
parent
6eba2fb2e6
commit
b4b820ed7b
@ -483,8 +483,7 @@ class DeepCheckResultsRendererElement(Element, ResultsBase, ReloadMixin):
|
||||
|
||||
@renderer
|
||||
def problems_p(self, req, tag):
|
||||
c = self.monitor.get_status().get_counters()
|
||||
if c["count-objects-unhealthy"]:
|
||||
if self._get_monitor_counter("count-objects-unhealthy"):
|
||||
return tag
|
||||
return ""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user