Problem fixed :
if [ \$max -le 1 ] ; then
  max=1.0
else
  let max=\$max-1
  max=${max}.0
fi

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of PATTON, BILLY (SBCSI)
> Sent: Wednesday, April 19, 2006 8:29 AM
> To: [email protected]
> Subject: What happens to --max-load if N is integer and not float?
> 
> 
> I have supplied some convenience scripts for the users.
> Here is an test case without calling make.
> 
> #!/usr/bin/ksh
> 
> max=`ioscan -fnkC processor | grep -c processor`
> if [ $max -le 1 ] ; then
>   max=1.0
> else
>   let max=$max-0.5
> fi
> 
> echo "gmake -j --max-load $max"
> 
> If integer here is a problem, do you know how to convert it 
> to a float?
> 
> 
> _______________________________________________
> Help-make mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-make
> 


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to