mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-05-02 09:03:00 +00:00
Remove the web view onto the removed metrics
This commit is contained in:
parent
83167cfe64
commit
e8e928aced
@ -12,8 +12,6 @@
|
|||||||
<h2>General</h2>
|
<h2>General</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Load Average: <t:transparent t:render="load_average" /></li>
|
|
||||||
<li>Peak Load: <t:transparent t:render="peak_load" /></li>
|
|
||||||
<li>Files Uploaded (immutable): <t:transparent t:render="uploads" /></li>
|
<li>Files Uploaded (immutable): <t:transparent t:render="uploads" /></li>
|
||||||
<li>Files Downloaded (immutable): <t:transparent t:render="downloads" /></li>
|
<li>Files Downloaded (immutable): <t:transparent t:render="downloads" /></li>
|
||||||
<li>Files Published (mutable): <t:transparent t:render="publishes" /></li>
|
<li>Files Published (mutable): <t:transparent t:render="publishes" /></li>
|
||||||
|
@ -1565,14 +1565,6 @@ class StatisticsElement(Element):
|
|||||||
# Note that `counters` can be empty.
|
# Note that `counters` can be empty.
|
||||||
self._stats = provider.get_stats()
|
self._stats = provider.get_stats()
|
||||||
|
|
||||||
@renderer
|
|
||||||
def load_average(self, req, tag):
|
|
||||||
return tag(str(self._stats["stats"].get("load_monitor.avg_load")))
|
|
||||||
|
|
||||||
@renderer
|
|
||||||
def peak_load(self, req, tag):
|
|
||||||
return tag(str(self._stats["stats"].get("load_monitor.max_load")))
|
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def uploads(self, req, tag):
|
def uploads(self, req, tag):
|
||||||
files = self._stats["counters"].get("uploader.files_uploaded", 0)
|
files = self._stats["counters"].get("uploader.files_uploaded", 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user