rcuscale: Avoid divide by zero
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 10 Sep 2020 05:24:57 +0000 (22:24 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Sat, 7 Nov 2020 01:13:50 +0000 (17:13 -0800)
The rcuscale test module does not use batches, so there is only
ever one batch.  This commit therefore informs the kvm-recheck-rcuscale.sh
script of this fact of life.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuscale.sh

index aa74515..b582113 100755 (executable)
@@ -32,7 +32,7 @@ sed -e 's/^\[[^]]*]//' < $i/console.log |
 awk '
 /-scale: .* gps: .* batches:/ {
        ngps = $9;
-       nbatches = $11;
+       nbatches = 1;
 }
 
 /-scale: .*writer-duration/ {