Merge pull request #1593

cbcdf8ad Honor depth in get_peerlist_head method (Miguel Herranz)
release-v0.4.0.1
Riccardo Spagni 8 years ago
commit 3db3a6ee1a
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

@ -285,9 +285,11 @@ namespace nodetool
{
if(!vl.last_seen)
continue;
bs_head.push_back(vl);
if(cnt++ > depth)
if(cnt++ >= depth)
break;
bs_head.push_back(vl);
}
return true;
}

Loading…
Cancel
Save