Re: [PATCH] makedumpfile: Do not print ETA value if current progress is 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 10 Apr 2018 09:47:07 +0200
Petr Tesarik <ptesarik@xxxxxxx> wrote:

>[...]
> Let's stay reasonable. Any value which represents more than a few
> (dozen) hours is not usable in practice. But hey, to make sure we
> cannot hit undefined behaviour, why not pass a double to
> eta_to_human_short()...

I gave it a second thought. Using math library functions just to print
a progress bar is overkill. In fact, using the FPU is already overkill.
Instead, I'm going to convert the calculations to pure integer
arithmetic.

Petr T

_______________________________________________
kexec mailing list
kexec@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/kexec



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux