diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-04-03 16:19:41 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-04-03 16:19:41 -0700 |
| commit | 158002d2d1603eea6336cb316b80e1c4b9ef7b10 (patch) | |
| tree | 63dbf1254ecf2f1b742ec223fe71c43c79e1595a /node/Path.hpp | |
| parent | c96d3ebf8cbcc639c194a69ce9dc299a55e2bfbe (diff) | |
| download | infinitytier-158002d2d1603eea6336cb316b80e1c4b9ef7b10.tar.gz infinitytier-158002d2d1603eea6336cb316b80e1c4b9ef7b10.zip | |
Tweak some timings and stuff.
Diffstat (limited to 'node/Path.hpp')
| -rw-r--r-- | node/Path.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/node/Path.hpp b/node/Path.hpp index 639ddb9b..e1900bbb 100644 --- a/node/Path.hpp +++ b/node/Path.hpp @@ -133,10 +133,10 @@ public: Utils::snprintf(tmp,sizeof(tmp),"%s;%s;%lld;%lld;%lld;%lld;%s", t, _addr.toString().c_str(), - (long long)((_lastSend != 0) ? (now - _lastSend) : -1), - (long long)((_lastReceived != 0) ? (now - _lastReceived) : -1), - (long long)((_lastFirewallOpener != 0) ? (now - _lastFirewallOpener) : -1), - (long long)((_lastPing != 0) ? (now - _lastPing) : -1), + (long long)((_lastSend != 0) ? ((now - _lastSend) / 1000LL) : -1), + (long long)((_lastReceived != 0) ? ((now - _lastReceived) / 1000LL) : -1), + (long long)((_lastFirewallOpener != 0) ? ((now - _lastFirewallOpener) / 1000LL) : -1), + (long long)((_lastPing != 0) ? ((now - _lastPing) / 1000LL) : -1), ((_fixed) ? "fixed" : (active(now) ? "active" : "inactive")) ); return std::string(tmp); |
