Skip to content

Commit

Permalink
symbol progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
joknarf committed Jun 24, 2024
1 parent 62b1667 commit 88161b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssh_para/ssh_para.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

SYMBOL_END = os.environ.get("SSHP_SYM_BEG") or "\ue0b4"
SYMBOL_BEGIN = os.environ.get("SSHP_SYM_END") or "\ue0b6"

SYMBOL_PROG = os.environ.get("SSH_SYM_PROG") or "■"

jobq = queue.Queue()
runq = queue.Queue()
Expand Down Expand Up @@ -298,7 +298,7 @@ def print_status(self, status, duration=0, avgjobdur=0):
pten = min(int(round(duration / avgjobdur * 10, 0)), 10)
addstr(
self.stdscr,
"■" * pten + " " * (10 - pten),
SYMBOL_PROG * pten + " " * (10 - pten),
curses.color_pair(self.COLOR_GAUGE),
) # ▶
else:
Expand Down

0 comments on commit 88161b1

Please sign in to comment.