[PATCH] makedumpfile: Do not print ETA value if current progress is 0
Petr Tesarik
ptesarik at suse.cz
Tue Apr 10 01:28:52 PDT 2018
On Tue, 10 Apr 2018 09:47:07 +0200
Petr Tesarik <ptesarik at suse.cz> 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
More information about the kexec
mailing list