Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2011 15:50:22 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 187950 for review
Message-ID:  <201101191550.p0JFoMlT068739@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@187950?ac=10

Change 187950 by trasz@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101191550.p0JFoMlT068739>