summaryrefslogtreecommitdiffstats
path: root/pyLoadCli.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyLoadCli.py')
-rwxr-xr-xpyLoadCli.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/pyLoadCli.py b/pyLoadCli.py
index e94a7e57d..cf75019be 100755
--- a/pyLoadCli.py
+++ b/pyLoadCli.py
@@ -54,12 +54,13 @@ class pyLoadCli:
self.connect(server_url)
- self.lock.acquire()
- curses.init_pair(1, curses.COLOR_BLUE, curses.COLOR_BLACK)
- curses.init_pair(2, curses.COLOR_YELLOW, curses.COLOR_BLACK)
- curses.init_pair(3, curses.COLOR_GREEN, curses.COLOR_BLACK)
- curses.init_pair(4, curses.COLOR_CYAN, curses.COLOR_BLACK)
- curses.init_pair(5, curses.COLOR_BLACK, curses.COLOR_WHITE)
+ self.lock.acquire()
+
+ curses.init_pair(1, curses.COLOR_BLUE, curses.COLOR_BLACK)
+ curses.init_pair(2, curses.COLOR_YELLOW, curses.COLOR_BLACK)
+ curses.init_pair(3, curses.COLOR_GREEN, curses.COLOR_BLACK)
+ curses.init_pair(4, curses.COLOR_CYAN, curses.COLOR_BLACK)
+ curses.init_pair(5, curses.COLOR_BLACK, curses.COLOR_WHITE )
self.screen = self.stdscr.subwin(23, 79, 0, 0)
self.screen.box()
@@ -86,7 +87,7 @@ class pyLoadCli:
raise Exception("server is version %s client accepts version %s" % (server_version, SERVER_VERSION))
def refresh(self):
- self.lock.acquire()
+ self.lock.acquire()
self.screen.refresh()
self.lock.release()
@@ -342,7 +343,7 @@ class LoopThread(Thread):
server_url = ""
def main(stdscr):
- global server_url
+ global server_url
cli = pyLoadCli(stdscr, server_url)
refresh_loop = LoopThread(cli.update_status, sleep_time=1)
refresh_loop.start()