Browse files

fixed minor bug

  • Loading branch information...
1 parent 892e0e5 commit e37e5c293d4776a35ed97e0a19845aac1c3f6df6 @pauloricardomg pauloricardomg committed Aug 14, 2010
View
2 service/service/java/source/src/org/globus/workspace/async/AsyncRequestManagerImpl.java
@@ -467,7 +467,7 @@ private void preemptAllocatedLowerBidRequests() {
*/
private void allocateLowerPriorityRequests(Integer higherPriorityVMs, List<AsyncRequest> aliveRequests, String requestType) {
- Integer availableVMs = this.maxVMs - higherPriorityVMs;
+ Integer availableVMs = Math.max(this.maxVMs - higherPriorityVMs, 0);
Integer allocatedVMs = 0;
for (AsyncRequest aliveRequest : aliveRequests) {

0 comments on commit e37e5c2

Please sign in to comment.