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

[tor-commits] [nyx/master] Round graph panel size values



commit ffe10c64586dfdf025077148324b744fe315a597
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Wed Sep 13 18:06:17 2017 -0700

    Round graph panel size values
---
 nyx/panel/graph.py | 2 +-
 nyx/tracker.py     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/nyx/panel/graph.py b/nyx/panel/graph.py
index e7114cb..db0ec53 100644
--- a/nyx/panel/graph.py
+++ b/nyx/panel/graph.py
@@ -708,4 +708,4 @@ def _size_label(byte_count, decimal = 1):
   or bytes.
   """
 
-  return str_tools.size_label(byte_count, decimal, is_bytes = not CONFIG['show_bits'])
+  return str_tools.size_label(byte_count, decimal, is_bytes = not CONFIG['show_bits'], round = True)
diff --git a/nyx/tracker.py b/nyx/tracker.py
index 8630529..5d0d1fd 100644
--- a/nyx/tracker.py
+++ b/nyx/tracker.py
@@ -821,7 +821,7 @@ class ConsensusTracker(object):
     controller = tor_controller()
 
     if cache_age < 3600:
-      stem.util.log.info('Cached is only %i seconds old, no need to refresh it.' % cache_age)
+      stem.util.log.info('Cache is only %s old, no need to refresh it.' % str_tools.time_label(cache_age, is_long = True))
     else:
       start_time = time.time()
       ns_response = controller.get_info('ns/all', None)

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