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

[tor-commits] [nyx/master] Lessen connection panel padding when there isn't geoip data



commit 16e9c1f22a2087fd9e84466b5c30568ddc6696f8
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Fri Nov 3 19:10:05 2017 -0700

    Lessen connection panel padding when there isn't geoip data
    
    When we don't list geoip information there's no need to reserve space for it.
---
 nyx/panel/connection.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nyx/panel/connection.py b/nyx/panel/connection.py
index a1e5916..ed0ec11 100644
--- a/nyx/panel/connection.py
+++ b/nyx/panel/connection.py
@@ -636,7 +636,7 @@ def _draw_address_column(subwindow, x, y, line, attr):
       dst += ' (%s)' % (line.locale if line.locale else '??')
 
   src = '%-21s' % src
-  dst = '%-26s' % dst
+  dst = '%-21s' % dst if tor_controller().is_geoip_unavailable() else '%-26s' % dst
 
   if line.entry.get_type() in (Category.INBOUND, Category.SOCKS, Category.CONTROL):
     dst, src = src, dst

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