From 76a991c2ab5e9a3cb53c4fa4cb5094239ac83c3e Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Tue, 7 Feb 2023 09:11:29 +0330 Subject: fixed a bug where tests would not reschedule after running for the first time --- pyproject.toml | 2 +- tunneltop/tunneltop.py | 6 ++++-- 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 "] 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 -- cgit v1.2.3