aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2023-02-07 09:04:28 +0000
committerterminaldweller <thabogre@gmail.com>2023-02-07 09:04:28 +0000
commitc0b3fc7a051258ee7c1006f161ee4fe57a328933 (patch)
treec75c5eb838d6d8329ecd147004c1c363ca9aa492
parentfix a bug with restart where it would kill but not restart a tunnel (diff)
downloadtunneltop-c0b3fc7a051258ee7c1006f161ee4fe57a328933.tar.gz
tunneltop-c0b3fc7a051258ee7c1006f161ee4fe57a328933.zip
fix the test times not being very accurate by lowering the halfdelay value from 20 to 2
-rw-r--r--pyproject.toml2
-rwxr-xr-xtunneltop/tunneltop.py4
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 <devi@terminaldweller.com>"]
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