From 6f9e440ec3e88025e411e887d5ddd9b187ed9ee2 Mon Sep 17 00:00:00 2001 From: dev Date: Fri, 11 Nov 2005 01:50:25 +0000 Subject: [PATCH] add wclimit overrun protection git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@47 3f5042e3-fb1d-0410-be18-d6ca2573e517 --- include/msched-version.h | 2 +- src/moab/MLimit.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/msched-version.h b/include/msched-version.h index e2f53d7..ab49c54 100644 --- a/include/msched-version.h +++ b/include/msched-version.h @@ -1 +1 @@ -#define MSCHED_VERSION "maui-3.2.6p14-snap.1129921819" +#define MSCHED_VERSION "maui-3.2.6p14-snap.1130608625" diff --git a/src/moab/MLimit.c b/src/moab/MLimit.c index 334ed82..c748b79 100644 --- a/src/moab/MLimit.c +++ b/src/moab/MLimit.c @@ -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))) {