From 71b55995ee8a31da2b6ecd80a337ac7edea06230 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot <groot@kde.org> Date: Tue, 24 Mar 2020 15:23:40 +0100 Subject: [PATCH] [dummypython] Fix up progress reporting - It's annoying to have 100% progress reported (from the processing of list items) and then have another 3 seconds delay. Unrelated to the issue-at-hand, but spotted in testing. --- src/modules/dummypython/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/dummypython/main.py b/src/modules/dummypython/main.py index 2da9b4760..96de6030f 100644 --- a/src/modules/dummypython/main.py +++ b/src/modules/dummypython/main.py @@ -102,7 +102,7 @@ def run(): status = _("Dummy python step {}").format(str(c) + ":" + repr(k)) libcalamares.utils.debug(_("Dummy python step {}").format(str(k))) sleep(1) - libcalamares.job.setprogress(c * 1.0 / len(configlist)) + libcalamares.job.setprogress(c * 1.0 / (len(configlist)+1)) c += 1 sleep(3)