From 3b9eb8f438741686cc93099a79b9c49acc27e588 Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Thu, 24 Apr 2014 11:08:59 +0530 Subject: is-cpu-isolated.sh: Capitalize all parameters Change-Id: I92ef53de6dbb3712b8463f6d1a7c0322b53b2730 Signed-off-by: Viresh Kumar --- common/scripts/is-cpu-isolated.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'common') diff --git a/common/scripts/is-cpu-isolated.sh b/common/scripts/is-cpu-isolated.sh index a9ddf1e..a78e76d 100755 --- a/common/scripts/is-cpu-isolated.sh +++ b/common/scripts/is-cpu-isolated.sh @@ -14,9 +14,9 @@ if [ "$1" = "-h" -o "$1" = "--help" ]; then echo "Usage: $0 " exit elif [ $1 ]; then - sample_count=$1 + SAMPLE_COUNT=$1 else - sample_count=1 + SAMPLE_COUNT=1 fi @@ -40,7 +40,7 @@ get_isolation_duration() { isdebug echo "Capture Isolation time" isdebug echo "----------------------" - isdebug echo "No. of samples requested:" $sample_count", min isolation required:" $MIN_ISOLATION + isdebug echo "No. of samples requested:" $SAMPLE_COUNT", min isolation required:" $MIN_ISOLATION isdebug echo "" new_count=$(get_tick_count) @@ -70,7 +70,7 @@ get_isolation_duration() { AVG=0 MIN=99999999 MAX=0 - while [ $x -lt $sample_count ] + while [ $x -lt $SAMPLE_COUNT ] do let x=x+1 @@ -123,7 +123,7 @@ get_isolation_duration() { fi done - let AVG=AVG/$sample_count + let AVG=AVG/$SAMPLE_COUNT isdebug echo "Result:" echo "test_case_id:Min-isolation "$MIN_ISOLATION" secs result:"$RESULT" measurement:"$AVG" units:secs" -- cgit v1.2.3