aboutsummaryrefslogtreecommitdiff
path: root/qlop.c
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2020-10-04 21:28:06 +0200
committerFabian Groffen <grobian@gentoo.org>2020-10-04 21:28:06 +0200
commitd5579e07d763403aa8ac770a97e3c36c96f6540a (patch)
tree9086350f5a6e7f920821d8a50d7b86651a0f0540 /qlop.c
parentqlop: slightly increase the average when computing ETA (diff)
downloadportage-utils-d5579e07d763403aa8ac770a97e3c36c96f6540a.tar.gz
portage-utils-d5579e07d763403aa8ac770a97e3c36c96f6540a.tar.bz2
portage-utils-d5579e07d763403aa8ac770a97e3c36c96f6540a.zip
qlop: adapt terminating/exiting logic somewhatv0.90
It seems that exiting doesn't always come immediately (= the same second) after terminating, so allow a small window (4s) for these to come in sequence to treat them as a single termination. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qlop.c')
-rw-r--r--qlop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qlop.c b/qlop.c
index 762523f..5045d17 100644
--- a/qlop.c
+++ b/qlop.c
@@ -508,7 +508,7 @@ static int do_emerge_log(
if (p[7] == 'm') {
parallel_emerge++;
} else if (parallel_emerge > 0) {
- if (p[7] != 'e' || tstart != last_exit)
+ if (p[7] != 'e' || (tstart - 4) <= last_exit)
parallel_emerge--;
if (p[7] == 'x')
last_exit = tstart;