changed name of turtle tunnels into a more explicit and less losy name ;-)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2103 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-01-21 12:33:01 +00:00
parent e2b807aad7
commit f42489d8e6

View File

@ -162,7 +162,7 @@ void p3turtle::statusChange(const std::list<pqipeer> &plist) // derived from pqi
void p3turtle::addDistantPeer(const TurtleFileHash&,TurtleTunnelId tid) void p3turtle::addDistantPeer(const TurtleFileHash&,TurtleTunnelId tid)
{ {
char buff[400] ; char buff[400] ;
sprintf(buff,"Turtle tunnel %08x",tid) ; sprintf(buff,"Anonymous F2F tunnel %08x",tid) ;
{ {
_virtual_peers[TurtleVirtualPeerId(buff)] = tid ; _virtual_peers[TurtleVirtualPeerId(buff)] = tid ;
@ -1686,7 +1686,11 @@ static std::string printNumber(uint64_t num,bool hex=false)
if(hex) if(hex)
{ {
char tmp[100] ; char tmp[100] ;
sprintf(tmp,"%08x%08x", uint32_t(num >> 32),uint32_t(num & ( (1<<32)-1 ))) ;
if(num < (1<<32))
sprintf(tmp,"%08x", uint32_t(num)) ;
else
sprintf(tmp,"%08x%08x", uint32_t(num >> 32),uint32_t(num & ( (1<<32)-1 ))) ;
return std::string(tmp) ; return std::string(tmp) ;
} }
else else