git: uptime - Use CLOCK_UPTIME to calculate uptime
Matthew Dillon
dillon at crater.dragonflybsd.org
Sat Dec 12 16:34:49 PST 2020
commit c360b54296ce8502c9a0526144ead6f9eda89b71
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sat Dec 12 16:33:32 2020 -0800
uptime - Use CLOCK_UPTIME to calculate uptime
* Use CLOCK_UPTIME instead of subtracting the current realtime
from boottime.
* Fixes broken uptimes after time is set.
Reported-by: tuxillo, others
Summary of changes:
usr.bin/w/w.c | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c360b54296ce8502c9a0526144ead6f9eda89b71
--
DragonFly BSD source repository
More information about the Commits
mailing list