Date: Wed, 4 Feb 2015 09:16:15 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r278187 - user/pho/stress2/misc Message-ID: <201502040916.t149GF2i020118@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pho Date: Wed Feb 4 09:16:14 2015 New Revision: 278187 URL: https://svnweb.freebsd.org/changeset/base/278187 Log: Use jot(1) to generate a random value. Fix trailing whitespace. Sponsored by: EMC / Isilon storage division Modified: user/pho/stress2/misc/pthread6.sh Modified: user/pho/stress2/misc/pthread6.sh ============================================================================== --- user/pho/stress2/misc/pthread6.sh Wed Feb 4 09:14:07 2015 (r278186) +++ user/pho/stress2/misc/pthread6.sh Wed Feb 4 09:16:14 2015 (r278187) @@ -39,8 +39,7 @@ rm -f pthread6.c /tmp/pthread6.core rm -f /tmp/pthread6.core daemon sh -c "(cd $here/../testcases/swap; ./swap -t 2m -i 20 -k)" -rnd=`od -An -N1 -t u1 /dev/urandom | sed 's/ //g'` -sleep $((rnd % 10)) +sleep `jot -r 1 1 9` for i in `jot 50`; do /tmp/pthread6 done @@ -299,7 +298,7 @@ main(void) test(); } - for (j = 0; j < PARALLEL; j++) + for (j = 0; j < PARALLEL; j++) wait(NULL); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502040916.t149GF2i020118>