// find better nodes to connect to
- if(!connect_to && min_connects <= cur_connects < max_connects)
+ if(!connect_to && min_connects <= cur_connects && cur_connects < max_connects)
{
unsigned int connects = 0;
// heal partitions
- if(!connect_to && min_connects <= cur_connects < max_connects)
+ if(!connect_to && min_connects <= cur_connects && cur_connects < max_connects)
{
splay_tree_t *nodes = splay_alloc_tree(node_compare_devclass_asc_last_connect_try_desc, NULL);
// disconnect suboptimal outgoing connections
- if(min_connects < cur_connects <= max_connects)
+ if(min_connects < cur_connects && cur_connects <= max_connects)
{
unsigned int connects = 0;