Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Sep 2017 13:37:02 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r323953 - user/pho/stress2/misc
Message-ID:  <201709231337.v8NDb27a057972@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Sat Sep 23 13:37:02 2017
New Revision: 323953
URL: https://svnweb.freebsd.org/changeset/base/323953

Log:
  No need to use grep(1).
  
  Sponsored by:	Dell EMC Isilon

Modified:
  user/pho/stress2/misc/marcus2.sh
  user/pho/stress2/misc/marcus5.sh

Modified: user/pho/stress2/misc/marcus2.sh
==============================================================================
--- user/pho/stress2/misc/marcus2.sh	Sat Sep 23 12:44:42 2017	(r323952)
+++ user/pho/stress2/misc/marcus2.sh	Sat Sep 23 13:37:02 2017	(r323953)
@@ -49,7 +49,7 @@ export runRUNTIME=20m
 export RUNDIR=$mntpoint/stressX
 
 n=`find ../testcases -perm -1 -type f | wc -l`
-m=`su $testuser -c "limits | grep maxprocesses | awk '{print \\$NF}'"`
+m=`su $testuser -c "limits | awk '/maxprocesses/ {print \\$NF}'"`
 export INCARNATIONS=$((m / n))
 export swapINCARNATIONS=$INCARNATIONS
 

Modified: user/pho/stress2/misc/marcus5.sh
==============================================================================
--- user/pho/stress2/misc/marcus5.sh	Sat Sep 23 12:44:42 2017	(r323952)
+++ user/pho/stress2/misc/marcus5.sh	Sat Sep 23 13:37:02 2017	(r323953)
@@ -53,7 +53,7 @@ size=$((`sysctl -n hw.physmem` / 1024 / 1024))
     { echo "deadlkres must be disabled for this test."; exit 0; }
 
 n=`find ../testcases -perm -1 -type f | wc -l`
-m=`su $testuser -c "limits | grep maxprocesses | awk '{print \\$NF}'"`
+m=`su $testuser -c "limits | awk '/maxprocesses/ {print \\$NF}'"`
 
 export RUNDIR=$mntpoint/stressX
 export INCARNATIONS=$((m / n))



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