systat - Fix initial pftop state

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 19 February 2015 18:14 UTC

- The initial pftop state divides by delta_time, which starts out as 0.0 and can prevent states from displaying properly.

- Initialize delta_time to 1.0 and disallow sleep intervals < 0.1 second to avoid an absurd result.

d645c5e systat - Fix initial pftop state
usr.bin/systat/pftop.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share