From 3547c954a6530fe850ed5cd2df817309a7ea9960 Mon Sep 17 00:00:00 2001 From: Connor McMillan Date: Fri, 19 Jan 2024 00:44:09 -0800 Subject: [PATCH] fix(cache): out of index Fixed condition to prevent out of index error in get_chart_labels Signed-off-by: Connor McMillan --- media/icon.svg | 24 ++++++++++++++++++++++++ worker_manager_server.py | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 media/icon.svg diff --git a/media/icon.svg b/media/icon.svg new file mode 100644 index 0000000..a124257 --- /dev/null +++ b/media/icon.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/worker_manager_server.py b/worker_manager_server.py index b165ecc..a082aad 100755 --- a/worker_manager_server.py +++ b/worker_manager_server.py @@ -94,8 +94,8 @@ def main() -> None: try: time_wait = helpers.netstat() if time_wait != 0: - logging.debug("time_wait = {}".format(time_wait)) - with progressbar(range(int(time_wait)), redirect_stdout=True): + logging.debug("time_wait = {}".format(round(time_wait + 1))) + for i in progressbar(range(round(time_wait + 1)), redirect_stdout=True): time.sleep(0.7) except Exception as ex: logging.exception(ex)