summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-05-26 10:34:43 -0400
committerEliot Horowitz <eliot@10gen.com>2010-05-26 10:34:43 -0400
commit24df6ebf211303196ca91df5d37a14258e2f3340 (patch)
treebcef5faff6798cafdf1c480cb6ef17e98e5b447e
parent075874207e6b189cd2428de570ee3b9b46471182 (diff)
downloadmongo-24df6ebf211303196ca91df5d37a14258e2f3340.tar.gz
fix balancing
-rw-r--r--s/balance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/s/balance.cpp b/s/balance.cpp
index 79c234dbaff..8053ef3ad12 100644
--- a/s/balance.cpp
+++ b/s/balance.cpp
@@ -148,7 +148,7 @@ namespace mongo {
log(6) << "min: " << min.first << "\t" << min.second << endl;
log(6) << "max: " << max.first << "\t" << max.second << endl;
- if( (int) ( max.second - min.second ) < _balancedLastTime ? 2 : 8 )
+ if( (int)( max.second - min.second) < ( _balancedLastTime ? 2 : 8 ) )
return false;
string from = max.first;