From b6eec535d31e742fce682182cd67c651ec1b9e80 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 12 Oct 2012 15:03:28 +0000 Subject: [PATCH] Use CLOCK_UPTIME to get the uptime. --- usr.bin/w/w.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index 8441ce5ee9a8..2e19bb11fa6c 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -447,7 +447,7 @@ pr_header(time_t *nowp, int nusers) /* * Print how long system has been up. */ - if (clock_gettime(CLOCK_MONOTONIC, &tp) != -1) { + if (clock_gettime(CLOCK_UPTIME, &tp) != -1) { uptime = tp.tv_sec; if (uptime > 60) uptime += 30;