Commit: 6b0aef9c34e7b537ddc94b2d445291e78e019581
Parent: 32011a3f5cc2ff1ebc74f3e3eb849dc262c323ea
Author: Randy Palamar
Date: Sat, 28 Oct 2023 22:21:01 -0600
avgtime: small style fix
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/bin/avgtime b/bin/avgtime
@@ -2,15 +2,14 @@
# calculates the average time from executing cmd n times (128 default)
-N=128
-
usage()
{
echo "usage: ${0##*/} [-n samples] cmd [arg ...]"
}
+N=128
if [ "$1" = "-n" ]; then
- shift; N="${1}"; shift
+ N="${2}"; shift 2
fi
[ $# -gt 0 ] || usage