aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2023-02-07 05:41:29 +0000
committerterminaldweller <thabogre@gmail.com>2023-02-07 05:41:29 +0000
commit76a991c2ab5e9a3cb53c4fa4cb5094239ac83c3e (patch)
tree68f6b46789a4bf3d28b545724fe1fec959d22b82
parentfixed the disabled task coloring issue. fixed the log to home dir (diff)
downloadtunneltop-76a991c2ab5e9a3cb53c4fa4cb5094239ac83c3e.tar.gz
tunneltop-76a991c2ab5e9a3cb53c4fa4cb5094239ac83c3e.zip
fixed a bug where tests would not reschedule after running for the first time
-rw-r--r--pyproject.toml2
-rwxr-xr-xtunneltop/tunneltop.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/pyproject.toml b/pyproject.toml
index d6f5113..2724253 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tunneltop"
-version = "0.1.1"
+version = "0.1.3"
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 fef05ee..21c6339 100755
--- a/tunneltop/tunneltop.py
+++ b/tunneltop/tunneltop.py
@@ -1,8 +1,7 @@
#!/usr/bin/env python
"""A top-like program for monitoring ssh tunnels or any tunnels"""
-# TODO- the disabled coloring is not working
# TODO- quit doesnt work
-# TODO- we are reviving dead tunnels
+# TODO- we are not reviving dead tunnels
import argparse
import asyncio
import copy
@@ -469,6 +468,9 @@ class TunnelManager:
tunnel_entry["test_interval"]
)
await asyncio.sleep(0)
+ self.scheduler_table[key] = int(
+ self.data_cols[key]["test_interval"]
+ )
else:
self.scheduler_table[key] = (
self.scheduler_table[key] - 1