Re: [hackers] [slstatus][PATCH] cpu_perc: Check for division by zero

From: Ingo Feinerer <feinerer_AT_logic.at>
Date: Thu, 14 Feb 2019 07:50:36 +0100

On Thu, Feb 14, 2019 at 12:31:46AM +0000, Michael Buch wrote:
> Perhaps it might be cleaner to save the sum away in separate variables
> instead of accessing the states several times. Or better extract into
> a separate function/macro. Also mind doing it for FreeBSD and Linux?
> Since they use the same logic

I sent another version to the list that uses variables; for *BSD and Linux.
Received on Thu Feb 14 2019 - 07:50:36 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 14 2019 - 08:00:24 CET