add wclimit overrun protection

git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@47 3f5042e3-fb1d-0410-be18-d6ca2573e517
This commit is contained in:
dev 2005-11-11 01:50:25 +00:00
parent 6cf129f4e2
commit 6f9e440ec3
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
#define MSCHED_VERSION "maui-3.2.6p14-snap.1129921819"
#define MSCHED_VERSION "maui-3.2.6p14-snap.1130608625"

View File

@ -63,6 +63,7 @@ int MLimitEnforceAll(
JobWCX = J->Cred.C->F.Overrun;
if ((JobWCX >= 0) &&
(J->WCLimit > 0) &&
(MSched.Time > J->StartTime) &&
((unsigned long)(MSched.Time - J->StartTime) > (J->WCLimit + J->SWallTime + JobWCX)))
{