Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jun 2017 09:21:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 219829] "systat -if 1" Peak has wrong display
Message-ID:  <bug-219829-8-ZcUZ0s45V6@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-219829-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-219829-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219829

Fabian Keil <fk@fabiankeil.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fk@fabiankeil.de

--- Comment #1 from Fabian Keil <fk@fabiankeil.de> ---
systat uses gettimeofday() calls to measure the time difference
between updates.

If the system time jumps, the "elapsed" time can appear to be
less than a second in which case the devisions in fetchifstat()
will result in the devided variables becoming larger.

systat should probably be changed to use clock_gettime()
with a monotonic clock.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219829-8-ZcUZ0s45V6>