[Swift-commit] cog r3529
swift at ci.uchicago.edu
swift at ci.uchicago.edu
Thu Dec 13 14:15:07 CST 2012
------------------------------------------------------------------------
r3529 | hategan | 2012-12-13 14:12:59 -0600 (Thu, 13 Dec 2012) | 1 line
fixed block comparator
------------------------------------------------------------------------
Index: modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/job/manager/BlockQueueProcessor.java
===================================================================
--- modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/job/manager/BlockQueueProcessor.java (revision 3528)
+++ modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/job/manager/BlockQueueProcessor.java (working copy)
@@ -437,7 +437,10 @@
public int compare(Block b1, Block b2) {
double s1 = b1.sizeLeft();
double s2 = b2.sizeLeft();
- if (s1 < s2) {
+ if (s1 == s2) {
+ return 0;
+ }
+ else if (s1 < s2) {
return -1;
}
else {
More information about the Swift-commit
mailing list