[tor-commits] [nyx/master] Nyx cpu usage metric incorrect
atagar at torproject.org
atagar at torproject.org
Mon Oct 30 17:25:19 UTC 2017
commit 46d782d0da7042b390b3fb3210895206860fd4dd
Author: Damian Johnson <atagar at torproject.org>
Date: Mon Oct 30 10:23:50 2017 -0700
Nyx cpu usage metric incorrect
Hey, it's only a couple orders of magnitude.
... *sigh*.
---
nyx/panel/header.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nyx/panel/header.py b/nyx/panel/header.py
index b1cbfbf..09e3838 100644
--- a/nyx/panel/header.py
+++ b/nyx/panel/header.py
@@ -283,7 +283,7 @@ class Sampling(object):
'nyx_total_cpu_time': nyx_total_cpu_time,
'tor_cpu': '%0.1f' % (100 * tor_resources.cpu_sample),
- 'nyx_cpu': '%0.1f' % (nyx_cpu),
+ 'nyx_cpu': '%0.1f' % (100 * nyx_cpu),
'memory': stem.util.str_tools.size_label(tor_resources.memory_bytes) if tor_resources.memory_bytes > 0 else 0,
'memory_percent': '%0.1f' % (100 * tor_resources.memory_percent),
More information about the tor-commits
mailing list