summaryrefslogtreecommitdiffstats
path: root/contrib/top/top.c
diff options
context:
space:
mode:
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