applied patch sent by Peter Gardfjaell
git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@79 3f5042e3-fb1d-0410-be18-d6ca2573e517
This commit is contained in:
parent
55d07dfb18
commit
ed61d83031
@ -3324,13 +3324,13 @@ int MJobProcessExtensionString(
|
||||
{
|
||||
if ((aindex = MUGetIndex(key,MRMXAttr,TRUE,mxaNONE)) == mxaNONE)
|
||||
{
|
||||
key = MUStrTok(NULL,";\n",&TokPtr);
|
||||
|
||||
if (X.XJobProcessRMXString != (int (*)())0)
|
||||
{
|
||||
(*X.XJobProcessRMXString)(X.xd,J,key);
|
||||
}
|
||||
|
||||
key = MUStrTok(NULL,";\n",&TokPtr);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -898,7 +898,8 @@ int MStatUpdateActiveJobUsage(
|
||||
called from: MQueueAddAJob()
|
||||
*/
|
||||
|
||||
if ((J->Req[0]->NAccessPolicy == mnacSingleJob) &&
|
||||
if ((J->Req[0] != NULL) &&
|
||||
(J->Req[0]->NAccessPolicy == mnacSingleJob) &&
|
||||
(MSched.NodeAllocMaxPS == TRUE))
|
||||
{
|
||||
TotalProcs = J->NodesRequested;
|
||||
@ -922,7 +923,8 @@ int MStatUpdateActiveJobUsage(
|
||||
(double)MSched.Interval / 100.0,
|
||||
(double)MSched.Time - J->StartTime);
|
||||
|
||||
if ((J->Req[0]->NAccessPolicy == mnacSingleJob) &&
|
||||
if ((J->Req[0] != NULL) &&
|
||||
(J->Req[0]->NAccessPolicy == mnacSingleJob) &&
|
||||
(MSched.NodeAllocMaxPS == TRUE))
|
||||
{
|
||||
pesdedicated = TotalProcs * interval;
|
||||
|
Loading…
Reference in New Issue
Block a user