Applied.
Regards--
Subrata
Subrata Modak wrote:
> B. N. Poornima's <[EMAIL PROTECTED]> patch for 'ltpstress.sh' on
> Architecture S390-31/64
>
> Regards--
> Subrata
>
>
> ------------------------------------------------------------------------
>
> --- ltp-full-20070331/testscripts/ltpstress.sh.org 2007-04-23
> 15:58:24.000000000 +0530
> +++ ltp-full-20070331/testscripts/ltpstress.sh 2007-04-23
> 16:29:39.000000000 +0530
> @@ -201,7 +201,12 @@ if [ $memsize -eq 0 ]; then
> TOTALRAM=$(free -m | grep Mem: | awk {'print $2'})
> TOTALSWAP=$(free -m | grep Swap: | awk {'print $2'})
> TESTSWAP=$(($TOTALSWAP / 2))
> - TESTMEM=$(($TESTSWAP + $TOTALRAM))
> + if [ $TESTSWAP -eq 0 ]; then
> + #if there is no swap in the system, use only the free RAM
> + TESTMEM=$(free -m | grep Mem: | awk {'print $4'})
> + else
> + TESTMEM=$(($TESTSWAP + $TOTALRAM))
> + fi
> #Convert to kilobytes
> memsize=$(($TESTMEM * 1024))
> check_memsize
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list