Hi Jeremie,
Yes, you are right. I modify the code which assumes if sysctl successes,
the sysload.fscale should not be 0. So this patch only handles sysctl
function failed case:
Index: machine.c
===
RCS file:
On Tue, May 22 2018, Nan Xiao wrote:
> Hi tech@,
>
> Below is the patch of resetting sysload if sysctl call failed in
> usr.bin/top/machine.c, otherwise the memory of sysload is undetermined.
> (The same process as uvmexp and bcstats).
>
> Index: machine.c
>
Hi tech@,
Below is the patch of resetting sysload if sysctl call failed in
usr.bin/top/machine.c, otherwise the memory of sysload is undetermined.
(The same process as uvmexp and bcstats).
Index: machine.c
===
RCS file: