[pisa-src] r858 - trunk/tools

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Tue, 25 Aug 2009 13:46:59 +0200

Author: biurrun
Date: Tue Aug 25 13:46:59 2009
New Revision: 858

Log:
Avoid POSIX-incompatible shell arithmetic with 'let'.

Modified:
   trunk/tools/NokiaN810_BEX_Perf.sh

Modified: trunk/tools/NokiaN810_BEX_Perf.sh
==============================================================================
--- trunk/tools/NokiaN810_BEX_Perf.sh   Tue Aug 25 13:26:31 2009        (r857)
+++ trunk/tools/NokiaN810_BEX_Perf.sh   Tue Aug 25 13:46:59 2009        (r858)
@@ -11,7 +11,7 @@
  echo "Usage `basename $0` host port number_of_loops"
  exit $E_BADARGS
 fi
-let x=`date +%s`
+x=`date +%s`
 for a in `seq $3`
 do
 echo `conntest-client-hip $1 tcp $2 <<"Test" >/dev/null 2>/dev/null
@@ -21,8 +21,8 @@
 sleep $4
 echo "Try #$a completed"
 done
-let y=`date +%s`
-let z=y-x
+y=`date +%s`
+z=$(($y-$x))
 echo "------------------------------------"
 echo "Used time for $3 Base exchanges: $z sec, including $4 sec sleeping 
between each loop"
 exit 0

Other related posts:

  • » [pisa-src] r858 - trunk/tools - Diego Biurrun