mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-16 13:02:27 -04:00
added routing methods for data in grouter.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6961 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
beedc07de8
commit
7edfa21ffd
5 changed files with 89 additions and 17 deletions
|
@ -24,6 +24,7 @@
|
|||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <math.h>
|
||||
|
||||
#include "util/rsrandom.h"
|
||||
#include "grouter/grouteritems.h"
|
||||
|
@ -81,7 +82,7 @@ bool operator ==(const RsGRouterPublishKeyItem& cmiLeft,const RsGRouterPublishK
|
|||
if(cmiLeft.diffusion_id != cmiRight.diffusion_id) return false;
|
||||
if(!(cmiLeft.published_key == cmiRight.published_key)) return false;
|
||||
if(cmiLeft.service_id != cmiRight.service_id) return false;
|
||||
// if(cmiLeft.randomized_distance != cmiRight.randomized_distance) return false;
|
||||
if(fabs(cmiLeft.randomized_distance - cmiRight.randomized_distance) > 0.001) return false;
|
||||
if(cmiLeft.description_string != cmiRight.description_string) return false;
|
||||
|
||||
return true ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue