projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
include aculib in cleanup
[unix-history]
/
usr
/
src
/
usr.bin
/
ruptime
/
ruptime.c
diff --git
a/usr/src/usr.bin/ruptime/ruptime.c
b/usr/src/usr.bin/ruptime/ruptime.c
index
750cd12
..
a465932
100644
(file)
--- a/
usr/src/usr.bin/ruptime/ruptime.c
+++ b/
usr/src/usr.bin/ruptime/ruptime.c
@@
-1,11
+1,10
@@
#ifndef lint
#ifndef lint
-static char sccsid[] = "@(#)ruptime.c 4.1
0 83/05/0
5";
+static char sccsid[] = "@(#)ruptime.c 4.1
2 (Berkeley) 83/05/2
5";
#endif
#include <sys/param.h>
#include <stdio.h>
#include <dir.h>
#endif
#include <sys/param.h>
#include <stdio.h>
#include <dir.h>
-#include <utmp.h>
#include <rwhod.h>
DIR *etc;
#include <rwhod.h>
DIR *etc;
@@
-112,11
+111,11
@@
again:
for (i = 0; i < nhosts; i++) {
hsp = &hs[i];
if (down(hsp)) {
for (i = 0; i < nhosts; i++) {
hsp = &hs[i];
if (down(hsp)) {
- printf("%-
8.8
s%s\n", hsp->hs_wd->wd_hostname,
+ printf("%-
12.12
s%s\n", hsp->hs_wd->wd_hostname,
interval(now - hsp->hs_wd->wd_recvtime, "down"));
continue;
}
interval(now - hsp->hs_wd->wd_recvtime, "down"));
continue;
}
- printf("%-
8.8
s%s, %4d user%s load %*.2f, %*.2f, %*.2f\n",
+ printf("%-
12.12
s%s, %4d user%s load %*.2f, %*.2f, %*.2f\n",
hsp->hs_wd->wd_hostname,
interval(hsp->hs_wd->wd_sendtime -
hsp->hs_wd->wd_boottime, " up"),
hsp->hs_wd->wd_hostname,
interval(hsp->hs_wd->wd_sendtime -
hsp->hs_wd->wd_boottime, " up"),