[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Error evaluating rank



Hi folks,

	The answer was a missing pair of parentheses. I had expressions
like:

OWNERBOOST = Owner == "user1" || Owner == "user2"
RANK = 10*( 2*OWNERBOOST - 1 ) - LoadAvg + 20

but it really should have been:

OWNERBOOST = (Owner == "user1" || Owner == "user2")
RANK = 10*( 2*OWNERBOOST - 1 ) - LoadAvg + 20

As Alan De Smet pointed out in "Administrating Condor", if you have
expresions like:

	TEN = 5+5
	HUNDRED = $(TEN)*$(TEN)

then the value of HUNDRED will be 5+5*5+5 or 35.  To get it to be 100,
you need parentheses around the (5+5).

							Bryan

-- 
========================================================================
Bryan Wright              |"If you take cranberries and stew them like 
Physics Department        | applesauce, they taste much more like prunes
University of Virginia    | than rhubarb does."  --  Groucho 
Charlottesville, VA  22901|			
(434) 924-7218            |         bryan@xxxxxxxxxxxx
========================================================================