git: top, vmstat, who, rwhod - Use CLOCK_UPTIME to calculate uptime

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Dec 12 18:27:29 PST 2020


commit da0d35cf5f1c213e98d1d2ab31bf1d7794d56691
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Dec 12 18:26:28 2020 -0800

    top, vmstat, who, rwhod - Use CLOCK_UPTIME to calculate uptime
    
    * Use CLOCK_UPTIME to calculate the system uptime instead of
      subtracting current real time from boot real time, which could
      get muffed up by setting the time.

Summary of changes:
 usr.bin/top/display.c     | 42 +++++++++++++++++-------------------------
 usr.bin/top/display.h     |  4 ++--
 usr.bin/top/m_dragonfly.c | 10 ++--------
 usr.bin/top/machine.h     |  2 +-
 usr.bin/top/top.c         | 11 ++++++++---
 usr.bin/vmstat/vmstat.c   | 15 +++++----------
 usr.bin/who/who.c         | 13 ++++++-------
 usr.sbin/rwhod/rwhod.c    | 13 +++----------
 8 files changed, 44 insertions(+), 66 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/da0d35cf5f1c213e98d1d2ab31bf1d7794d56691


-- 
DragonFly BSD source repository


More information about the Commits mailing list