From 9ec6a08a18bed1d50e01b242e01accb3dd5284ec Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 30 Jan 2021 22:53:46 -0500 Subject: [PATCH] Fix calculation of progress --- lightcards/display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightcards/display.py b/lightcards/display.py index 4dab9e1..0e58870 100755 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -9,7 +9,7 @@ def disp_bar(stdscr, stack, headers, obj): if len(stack) <= 1: percent = "100" else: - percent = str(round(obj.getIdx() / (len(stack)) * 100)).zfill(3) + percent = str(round(obj.getIdx() / (len(stack) - 1) * 100)).zfill(3) stdscr.insstr(mlines - 1, 0, "[" + -- 2.39.2