[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: What happens to --max-load if N is integer and not float?
From: |
PATTON, BILLY \(SBCSI\) |
Subject: |
RE: What happens to --max-load if N is integer and not float? |
Date: |
Wed, 19 Apr 2006 08:36:26 -0500 |
Problem fixed :
if [ \$max -le 1 ] ; then
max=1.0
else
let max=\$max-1
max=${max}.0
fi
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On Behalf
> Of PATTON, BILLY (SBCSI)
> Sent: Wednesday, April 19, 2006 8:29 AM
> To: address@hidden
> 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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make
>