From 9f7048fa71a5fb08814d14e0a2033bd44a020fbf Mon Sep 17 00:00:00 2001 From: dev Date: Thu, 13 Oct 2005 02:05:52 +0000 Subject: [PATCH] fix reservation allocation charging git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@37 3f5042e3-fb1d-0410-be18-d6ca2573e517 --- src/moab/MRes.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/moab/MRes.c b/src/moab/MRes.c index 473c516..88e8857 100644 --- a/src/moab/MRes.c +++ b/src/moab/MRes.c @@ -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);