patch from Yaroslav Halchenko for NODECFG[] MAXPROCPERUSER

git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@75 3f5042e3-fb1d-0410-be18-d6ca2573e517
This commit is contained in:
wightman 2006-11-21 05:31:19 +00:00
parent 564449aa7b
commit 3dfc02547b

View File

@ -1622,6 +1622,11 @@ int MPBSLoadQueueInfo(
{
CCount = MIN(CCount,N->MaxProcPerClass[C->Index]);
}
else if ((MSched.DefaultN.MaxProcPerClass != NULL) &&
(MSched.DefaultN.MaxProcPerClass[C->Index] > 0))
{
CCount = MIN(CCount,MSched.DefaultN.MaxProcPerClass[C->Index]);
}
N->CRes.PSlot[C->Index].count += CCount;
N->CRes.PSlot[0].count += CCount;