PERFORCE change 187950 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Wed Jan 19 15:50:22 UTC 2011
http://p4web.freebsd.org/@@187950?ac=10
Change 187950 by trasz at trasz_victim on 2011/01/19 15:49:16
Make humanized output the default for userstat(1) and jailstat(1).
Affected files ...
.. //depot/projects/soc2009/trasz_limits/usr.bin/userstat/userstat.sh#8 edit
Differences ...
==== //depot/projects/soc2009/trasz_limits/usr.bin/userstat/userstat.sh#8 (text+ko) ====
@@ -30,13 +30,15 @@
# $FreeBSD$
usage() {
- echo "usage: `basename $0` [-h] [wait [count]]"
+ echo "usage: `basename $0` [-s] [wait [count]]"
exit 1
}
-while getopts 'h' cmd_arg; do
+hflag="-h"
+
+while getopts 's' cmd_arg; do
case "${cmd_arg}" in
- h) hflag="-h" ;;
+ s) hflag="" ;;
*) usage ;;
esac
done
More information about the p4-projects
mailing list