projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4473e7e
)
print "user" when only 1 user on the machine
author
Sam Leffler
<sam@ucbvax.Berkeley.EDU>
Sun, 12 May 1985 08:10:13 +0000
(
00:10
-0800)
committer
Sam Leffler
<sam@ucbvax.Berkeley.EDU>
Sun, 12 May 1985 08:10:13 +0000
(
00:10
-0800)
SCCS-vsn: usr.bin/w/w.c 4.15
usr/src/usr.bin/w/w.c
patch
|
blob
|
blame
|
history
diff --git
a/usr/src/usr.bin/w/w.c
b/usr/src/usr.bin/w/w.c
index
c3d160c
..
6bbda67
100644
(file)
--- a/
usr/src/usr.bin/w/w.c
+++ b/
usr/src/usr.bin/w/w.c
@@
-219,7
+219,7
@@
main(argc, argv)
nusers++;
}
rewind(ut);
nusers++;
}
rewind(ut);
- printf(" %d user
s", nusers
);
+ printf(" %d user
%s", nusers, nusers>1?"s":""
);
/*
* Print 1, 5, and 15 minute load averages.
/*
* Print 1, 5, and 15 minute load averages.