fix reservation allocation charging

git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@37 3f5042e3-fb1d-0410-be18-d6ca2573e517
This commit is contained in:
dev 2005-10-13 02:05:52 +00:00
parent 0775101d18
commit 9f7048fa71

View File

@ -166,8 +166,10 @@ int MResCreate(
strcmp(CAName,NONE))
{
MAcctAdd(CAName,&R->A);
/* prevent checkpointed rsv's from double creating AM reservations */
if (MSched.Iteration > 0)
if (MSched.Iteration >= 0)
{
if (StartTime > MSched.Time)
WallTime = MIN(MAM[0].FlushInterval,EndTime - StartTime);