mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-31 00:23:58 +00:00
Small readability fix.
This commit is contained in:
parent
5ef2c6fd6f
commit
acb056e3b1
@ -98,7 +98,23 @@ public:
|
|||||||
Utils::snprintf(lrago,sizeof(lrago),"%lld",(long long)((_lastReceived != 0) ? (now - _lastReceived) : -1));
|
Utils::snprintf(lrago,sizeof(lrago),"%lld",(long long)((_lastReceived != 0) ? (now - _lastReceived) : -1));
|
||||||
Utils::snprintf(lfoago,sizeof(lfoago),"%lld",(long long)((_lastFirewallOpener != 0) ? (now - _lastFirewallOpener) : -1));
|
Utils::snprintf(lfoago,sizeof(lfoago),"%lld",(long long)((_lastFirewallOpener != 0) ? (now - _lastFirewallOpener) : -1));
|
||||||
Utils::snprintf(lpago,sizeof(lfoago),"%lld",(long long)((_lastPing != 0) ? (now - _lastPing) : -1));
|
Utils::snprintf(lpago,sizeof(lfoago),"%lld",(long long)((_lastPing != 0) ? (now - _lastPing) : -1));
|
||||||
return (_addr.toString() + "[" + (_tcp ? "tcp" : "udp") + ";" + lsago + ";" + lrago + ";" + lpago + ";" + lfoago + ";" + (active(now) ? "active" : "inactive") + ";" + (_fixed ? "fixed" : "learned") + "]");
|
return ( _addr.toString() +
|
||||||
|
"[" +
|
||||||
|
(_tcp ? "tcp" : "udp") +
|
||||||
|
";" +
|
||||||
|
lsago +
|
||||||
|
";" +
|
||||||
|
lrago +
|
||||||
|
";" +
|
||||||
|
lpago +
|
||||||
|
";" +
|
||||||
|
lfoago +
|
||||||
|
";" +
|
||||||
|
(active(now) ? "active" : "inactive") +
|
||||||
|
";" +
|
||||||
|
(_fixed ? "fixed" : "learned") +
|
||||||
|
"]"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool operator==(const Path &p) const throw() { return ((_addr == p._addr)&&(_tcp == p._tcp)); }
|
inline bool operator==(const Path &p) const throw() { return ((_addr == p._addr)&&(_tcp == p._tcp)); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user