diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-12 16:24:38 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-12 16:24:51 +0000 |
commit | 128cf2daf76e5b05a4e577b60ea406fdbb6986bf (patch) | |
tree | 1eeda21c7b8af0d08a57f46a2ec2c81f4fe3f326 /synapse/metrics/__init__.py | |
parent | Option to serve metrics from their own localhost-only TCP port instead of mux... (diff) | |
download | synapse-128cf2daf76e5b05a4e577b60ea406fdbb6986bf.tar.xz |
Appease pep8
Diffstat (limited to 'synapse/metrics/__init__.py')
-rw-r--r-- | synapse/metrics/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py index 94164974fc..7b9c9c8bab 100644 --- a/synapse/metrics/__init__.py +++ b/synapse/metrics/__init__.py @@ -85,7 +85,7 @@ def render_all(): strs += ["# FAILED to render %s" % name] logger.exception("Failed to render %s metric", name) - strs.append("") # to generate a final CRLF + strs.append("") # to generate a final CRLF return "\n".join(strs) @@ -96,6 +96,7 @@ def render_all(): rusage = None PAGE_SIZE = getpagesize() + def update_resource_metrics(): global rusage rusage = getrusage(RUSAGE_SELF) |