git: systat - Fix initial pftop state
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Feb 19 16:15:54 PST 2015
commit d645c5e3507b0eb05b53a910ab194666483270e0
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Thu Feb 19 16:14:52 2015 -0800
systat - Fix initial pftop state
* 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.
Summary of changes:
usr.bin/systat/pftop.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d645c5e3507b0eb05b53a910ab194666483270e0
--
DragonFly BSD source repository
More information about the Commits
mailing list