weighted maximum length of a msg in grouter inversely to how much it has spread

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7625 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-10-19 22:02:00 +00:00
parent 90c24e7135
commit db55ab0bde

View File

@ -438,7 +438,7 @@ void p3GRouter::routePendingObjects()
// send
new_item->PeerId(pids[*its]) ;
new_item->randomized_distance += computeRandomDistanceIncrement(pids[*its],new_item->destination_key) ;
new_item->randomized_distance += routing_friend_indices.size() * computeRandomDistanceIncrement(pids[*its],new_item->destination_key) ;
sendItem(new_item) ;
}
@ -1190,7 +1190,8 @@ void p3GRouter::debugDump()
grouter_debug() << " Routing matrix: " << std::endl;
_routing_matrix.debugDump() ;
if(_debug_enabled)
_routing_matrix.debugDump() ;
}