tfcache-comparison

fixed reduce reduce parameter for cache-only and fixed groups

6/11/2020 2:58:28 AM

Changes

reduce.sh 6(+3 -3)

Details

reduce.sh 6(+3 -3)

diff --git a/reduce.sh b/reduce.sh
index 26446fa..57673b2 100755
--- a/reduce.sh
+++ b/reduce.sh
@@ -38,7 +38,7 @@ overwrite="false"
 if [[ ! -z $1 ]]; then
 	host=$1
 	if [[ ! -z $2 ]]; then
-		versions=$2
+		groups=$2
 		if [[ ! -z $3 ]]; then
 			applications=$3
 			if [[ ! -z $4 ]]; then
@@ -53,9 +53,9 @@ fi
 
 if [[ $host = "localhost" ]]; then
 	initialize-output "$reduce" "$overwrite"
-else
+elif [[ $reduce = "*" || $reduce = "cache" ]]; then
 	initialize-output "requests" "$overwrite"
-	command="bash reduce.sh localhost \"$versions\" \"$applications\" cache $overwrite"
+	command="bash reduce.sh localhost \"$groups\" \"$applications\" cache $overwrite"
 	execute "$host" "$command"
 fi
 echo "$(date '+%F %T') Reducing $reduce in host $host for the applications $applications among the versions $versions"