local swarm number age for update

This commit is contained in:
vivek-shankar 2017-05-18 02:15:26 -04:00
parent 39626de75e
commit a1a8090670
1 changed files with 1 additions and 1 deletions

View File

@ -932,7 +932,7 @@ namespace rosbzz_node{
}
else if(no_cnt!=0 && old_val==cur_robots){
no_cnt++;
if(no_cnt>=8 || cur_val > no_of_robots){
if(no_cnt>=150 || cur_robots > no_of_robots){
no_of_robots=cur_robots;
no_cnt=0;
}