Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed minor bug

  • Loading branch information...
commit e37e5c293d4776a35ed97e0a19845aac1c3f6df6 1 parent 892e0e5
@pauloricardomg pauloricardomg authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.