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

atagar at torproject.org atagar at torproject.org
Mon Feb 15 14:45:09 UTC 2016


commit d280b81cf55acbc792615613bd84096816a64ede
Author: Damian Johnson <atagar at torproject.org>
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)





More information about the tor-commits mailing list