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

[tor-commits] [nyx/master] Header panel doesn't need the start time



commit d280b81cf55acbc792615613bd84096816a64ede
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Wed Feb 10 19:45:01 2016 -0800

    Header panel doesn't need the start time
    
    Argument's unused by the constructor. Guess just something that got lost in the
    shuffle.
---
 nyx/controller.py   | 6 +++---
 nyx/header_panel.py | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/nyx/controller.py b/nyx/controller.py
index 0f972b3..7b0a276 100644
--- a/nyx/controller.py
+++ b/nyx/controller.py
@@ -76,7 +76,7 @@ def stop_controller():
   return halt_thread
 
 
-def init_controller(stdscr, start_time):
+def init_controller(stdscr):
   """
   Spawns the controller, and related panels for it.
 
@@ -89,7 +89,7 @@ def init_controller(stdscr, start_time):
   # initializes the panels
 
   sticky_panels = [
-    nyx.header_panel.HeaderPanel(stdscr, start_time),
+    nyx.header_panel.HeaderPanel(stdscr),
     LabelPanel(stdscr),
   ]
 
@@ -408,7 +408,7 @@ def start_nyx(stdscr):
     stdscr    - curses window
   """
 
-  init_controller(stdscr, CONFIG['start_time'])
+  init_controller(stdscr)
   control = get_controller()
 
   if not CONFIG['features.acsSupport']:
diff --git a/nyx/header_panel.py b/nyx/header_panel.py
index bbc5ede..0d6591a 100644
--- a/nyx/header_panel.py
+++ b/nyx/header_panel.py
@@ -34,7 +34,7 @@ class HeaderPanel(panel.Panel, threading.Thread):
   Top area containing tor settings and system information.
   """
 
-  def __init__(self, stdscr, start_time):
+  def __init__(self, stdscr):
     panel.Panel.__init__(self, stdscr, 'header', 0)
     threading.Thread.__init__(self)
     self.setDaemon(True)



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