diff options
author | 2020-10-04 21:28:06 +0200 | |
---|---|---|
committer | 2020-10-04 21:28:06 +0200 | |
commit | d5579e07d763403aa8ac770a97e3c36c96f6540a (patch) | |
tree | 9086350f5a6e7f920821d8a50d7b86651a0f0540 /qlop.c | |
parent | qlop: slightly increase the average when computing ETA (diff) | |
download | portage-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |