diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2016-10-19 18:23:25 +0100 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2016-10-19 18:23:25 +0100 |
commit | 1071c7d9634ac25aff657cee5a8dbfbb80128c71 (patch) | |
tree | 5dd945b633f3550fe96aee74c7d5942e22ff80ac /synapse/metrics/process_collector.py | |
parent | Cut the raw /proc/self/stat line up into named fields at collection time (diff) | |
download | synapse-1071c7d9634ac25aff657cee5a8dbfbb80128c71.tar.xz |
Adjust code for <100 char line limit
Diffstat (limited to 'synapse/metrics/process_collector.py')
-rw-r--r-- | synapse/metrics/process_collector.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/metrics/process_collector.py b/synapse/metrics/process_collector.py index f31aa79c5c..f8542affd5 100644 --- a/synapse/metrics/process_collector.py +++ b/synapse/metrics/process_collector.py @@ -139,7 +139,7 @@ def register_process_collector(): "cpu_system_seconds_total", lambda: float(stats["stime"]) / TICKS_PER_SEC ) process_metrics.register_callback( - "cpu_seconds_total", lambda: (float(stats["utime"]) + float(stats["stime"])) / TICKS_PER_SEC + "cpu_seconds_total", lambda: (float(stats["utime"] + stats["stime"])) / TICKS_PER_SEC ) process_metrics.register_callback( |