[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [nyx/master] Nyx cpu usage metric incorrect



commit 46d782d0da7042b390b3fb3210895206860fd4dd
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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),
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits