On 2024-01-05, Peter Humphrey wrote:

> Hello list,
>
> I've just had some strange output from genlop on my 16-thread i5 box, thus:
>
> # genlop -t libreoffice | /bin/grep minute
>        merge time: 37 minutes and 38 seconds.
>        merge time: 52 minutes and 59 seconds.
>        merge time: 46 minutes and 17 seconds.
>
> # genlop -c
>
>  Currently merging 11 out of 11
>
>  * app-office/libreoffice-7.5.9.2
>
>        current merge time: 4 minutes and 3 seconds.
>        ETA: 1 hour, 4 minutes and 24 seconds.
>

Is this an off-by-one?

While I'm not acquainted with perl,
https://raw.githubusercontent.com/gentoo-perl/genlop/master/genlop has
this:

"For a better prediction we only consider the last 10 merges", followed
by a max() with the number 9, suggesting zero-based indices that would
need to be incremented for the average, but then

    "$tm_secondi = sum(@merge_times) / $#merge_times;"

(That said, I also wonder if the "slicing off" part needs adjustment
too, can the (zero-based?) length be greater than 9 after it was
shortened to be 9? Or am I misunderstanding the code?)

Summing the three merge times and dividing by two I get, if I've not
messed up my calculations, 68 minutes and 27 seconds, matching your
"Currently merging" output.

-- 
Nuno Silva


Reply via email to