svn commit: r319939 - user/pho/stress2/tools
Peter Holm
pho at FreeBSD.org
Wed Jun 14 07:52:25 UTC 2017
Author: pho
Date: Wed Jun 14 07:52:24 2017
New Revision: 319939
URL: https://svnweb.freebsd.org/changeset/base/319939
Log:
Fix list truncation.
Sponsored by: Dell EMC Isilon
Modified:
user/pho/stress2/tools/splitall.sh
Modified: user/pho/stress2/tools/splitall.sh
==============================================================================
--- user/pho/stress2/tools/splitall.sh Wed Jun 14 07:46:52 2017 (r319938)
+++ user/pho/stress2/tools/splitall.sh Wed Jun 14 07:52:24 2017 (r319939)
@@ -51,7 +51,7 @@ for i in $list; do
lst="$lst $i"
done
n=`echo $lst | wc -w`
-(cd /tmp; echo $lst | tr ' ' '\n' | split -d -l $((n / parts)) - str)
+(cd /tmp; echo $lst | tr ' ' '\n' | split -d -l $((n / parts + 1)) - str)
part=`printf "/tmp/str%02d" $((pno - 1))`
plist=`cat $part | tr '\n' ' '`
rm -f /tmp/str0?
More information about the svn-src-user
mailing list