Skip to content

Commit

Permalink
fix(cache): out of index
Browse files Browse the repository at this point in the history
Fixed condition to prevent out of index error in get_chart_labels

Signed-off-by: Connor McMillan <[email protected]>
  • Loading branch information
mibs510 committed Jan 19, 2024
1 parent 9263625 commit 3547c95
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions media/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions worker_manager_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3547c95

Please sign in to comment.