* should be based on active range; this to make passive range
* more useful (can catch up with larger passive range; then enable
* larger range once caught up)
*/
KeyRange range = getActiveRange();
int distance = range.clockwiseDistance(keyHash);
if (isDisabled()) {
distance += range.getKeyspace().getLength();
}
return distance;
}