summaryrefslogtreecommitdiffstats
path: root/contrib/top/top.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-01-09 20:25:02 +0000
committerobrien <obrien@FreeBSD.org>1999-01-09 20:25:02 +0000
commit5ef1fe5a746e1c0d94e728b671737d381e878511 (patch)
treea3ebc7a1920ec766658c787379ec3c7b26cbaeea /contrib/top/top.c
parent48d88654f8eeed779ba34dafaa48e1f50e96008e (diff)
downloadFreeBSD-src-5ef1fe5a746e1c0d94e728b671737d381e878511.zip
FreeBSD-src-5ef1fe5a746e1c0d94e728b671737d381e878511.tar.gz
uptime display more in style with original code
Diffstat (limited to 'contrib/top/top.c')
-rw-r--r--contrib/top/top.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/top/top.c b/contrib/top/top.c
index ef4b963..51cd3f0 100644
--- a/contrib/top/top.c
+++ b/contrib/top/top.c
@@ -549,6 +549,7 @@ Usage: %s [-ISbinqut] [-d x] [-s x] [-o field] [-U username] [number]\n",
/* display the current time */
/* this method of getting the time SHOULD be fairly portable */
time(&curr_time);
+ i_uptime(&system_info.boottime, &curr_time);
i_timeofday(&curr_time);
/* display process state breakdown */
OpenPOWER on IntegriCloud