Fix bug advance gap until allocation time

FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
This commit is contained in:
Diego Pino Garcia 2010-12-27 13:33:43 +01:00
parent b4de7e098e
commit ef137d2637

View file

@ -199,10 +199,10 @@ public class LimitingResourceAllocator {
return 0;
}
for (pos = 0; pos < elements.size(); pos++) {
for (pos = 1; pos < elements.size(); pos++) {
final LimitingResourceQueueElement each = elements.get(pos);
final DateAndHour startTime = each.getStartTime();
if (until.isAfter(startTime) || until.isEquals(startTime)) {
if (until.isBefore(startTime) || until.isEquals(startTime)) {
return pos;
}
}