First two arguments of print_runtime_ratio are now avg1 and stddev1. These are no longer taken from the environment.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8250 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/exp-drd/scripts/measurement-functions b/exp-drd/scripts/measurement-functions
index 0264da6..59536b7 100644
--- a/exp-drd/scripts/measurement-functions
+++ b/exp-drd/scripts/measurement-functions
@@ -56,7 +56,10 @@
 ## Print the average runtime of the command passed in $1 .. ${$#} and the ratio
 #  of the runtime to ${avg1} +/- ${stddev1}.
 function print_runtime_ratio {
-  local tmp
+  local tmp avg1="$1" avg2="$2"
+
+  shift
+  shift
 
   tmp="/tmp/test-timing.$$"
   rm -f "${tmp}"
diff --git a/exp-drd/scripts/run-matinv b/exp-drd/scripts/run-matinv
index a95d691..0f80c4b 100755
--- a/exp-drd/scripts/run-matinv
+++ b/exp-drd/scripts/run-matinv
@@ -30,7 +30,9 @@
 
   for i in 1 10
   do
-    print_runtime_ratio ${VG} --tool=none    ${MATINV} $n -t$i
-    print_runtime_ratio ${VG} --tool=exp-drd ${MATINV} $n -t$i
+    print_runtime_ratio ${avg1} ${stddev1} \
+      ${VG} --tool=none    ${MATINV} $n -t$i
+    print_runtime_ratio ${avg1} ${stddev1} \
+      ${VG} --tool=exp-drd ${MATINV} $n -t$i
   done
 done