diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-28 21:04:15 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-28 21:04:15 -0700 |
commit | acb056e3b1997cbbf95b78787c385b134b924d15 (patch) | |
tree | 4e9bf779a177af9e5ef2696ea8d0be2014632a4a | |
parent | 5ef2c6fd6f2ad722a4741ff324c0eeca947ccda1 (diff) | |
download | infinitytier-acb056e3b1997cbbf95b78787c385b134b924d15.tar.gz infinitytier-acb056e3b1997cbbf95b78787c385b134b924d15.zip |
Small readability fix.
-rw-r--r-- | node/Path.hpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/node/Path.hpp b/node/Path.hpp index 09ed1f9e..10772161 100644 --- a/node/Path.hpp +++ b/node/Path.hpp @@ -98,7 +98,23 @@ public: 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(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)); } |