Re: [patch] Reset sysload if sysctl call failed in usr.bin/top/machine.c

2018-05-24 Thread Nan Xiao
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:

Re: [patch] Reset sysload if sysctl call failed in usr.bin/top/machine.c

2018-05-24 Thread Jeremie Courreges-Anglas
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 >

[patch] Reset sysload if sysctl call failed in usr.bin/top/machine.c

2018-05-22 Thread Nan Xiao
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: