summary refs log tree commit diff
path: root/synapse/metrics/process_collector.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2016-10-19 18:23:25 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2016-10-19 18:23:25 +0100
commit1071c7d9634ac25aff657cee5a8dbfbb80128c71 (patch)
tree5dd945b633f3550fe96aee74c7d5942e22ff80ac /synapse/metrics/process_collector.py
parentCut the raw /proc/self/stat line up into named fields at collection time (diff)
downloadsynapse-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.py2
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(