-.\" $OpenBSD: uptime.1,v 1.14 2007/05/31 19:20:19 jmc Exp $
+.\" $OpenBSD: uptime.1,v 1.15 2017/12/14 18:03:03 jasper Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
.\"
.\" @(#)uptime.1 8.2 (Berkeley) 4/18/94
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: December 14 2017 $
.Dt UPTIME 1
.Os
.Sh NAME
the length of time the system has been up,
the number of users, and the load average of the system over the last
1, 5, and 15 minutes.
-This is the
-.Dq heading
-information from
+This is the first line from
.Xr w 1 .
.Sh SEE ALSO
.Xr w 1
-/* $OpenBSD: w.c,v 1.63 2017/07/27 14:17:34 jca Exp $ */
+/* $OpenBSD: w.c,v 1.64 2017/12/14 18:03:03 jasper Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
#define HEADER "USER TTY FROM LOGIN@ IDLE WHAT"
#define WUSED (sizeof(HEADER) - sizeof("WHAT"))
- (void)puts(HEADER);
+ if (header)
+ (void)puts(HEADER);
kp = kvm_getprocs(kd, KERN_PROC_ALL, 0, sizeof(*kp), &nentries);
if (kp == NULL)