From 158002d2d1603eea6336cb316b80e1c4b9ef7b10 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 3 Apr 2014 16:19:41 -0700 Subject: Tweak some timings and stuff. --- node/Path.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'node/Path.hpp') 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); -- cgit v1.2.3