From c0b3fc7a051258ee7c1006f161ee4fe57a328933 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Tue, 7 Feb 2023 12:34:28 +0330 Subject: fix the test times not being very accurate by lowering the halfdelay value from 20 to 2 --- pyproject.toml | 2 +- tunneltop/tunneltop.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b243c4e..03edd91 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "tunneltop" -version = "0.1.4" +version = "0.1.5" description = "A top-like tunnel manager" authors = ["terminaldwelelr "] license = "GPL-3.0" diff --git a/tunneltop/tunneltop.py b/tunneltop/tunneltop.py index 0e92578..6810638 100755 --- a/tunneltop/tunneltop.py +++ b/tunneltop/tunneltop.py @@ -191,7 +191,8 @@ def curses_init(): curses.noecho() curses.cbreak() stdscr.keypad(True) - curses.halfdelay(20) + # stdscr.nodelay(True) + curses.halfdelay(2) curses.init_pair(1, curses.COLOR_GREEN, curses.COLOR_BLACK) curses.init_pair(2, curses.COLOR_BLACK, curses.COLOR_GREEN) curses.init_pair(3, curses.COLOR_BLUE, curses.COLOR_BLACK) @@ -456,6 +457,7 @@ class TunnelManager: async def scheduler(self) -> None: """scheduler manages running the tests and reviving dead tunnels""" try: + await asyncio.sleep(5) while True: if self.are_we_dying: return -- cgit v1.2.3