diff options
author | Richard Linden <none@none> | 2013-08-16 12:38:12 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-08-16 12:38:12 -0700 |
commit | 25937040de9a787c221aae7f178f43827c799028 (patch) | |
tree | 69f9a127043fb492ea218678398d81456239e5c2 /indra/llmessage/llpacketack.cpp | |
parent | aa050ac946e372c72d0411cda95ccaf41603f394 (diff) |
SH-4433 WIP: Interesting: Statistics > Ping Sim is always 0 ms
converted many values over to units system in effort to track down
source of 0 ping
Diffstat (limited to 'indra/llmessage/llpacketack.cpp')
-rwxr-xr-x | indra/llmessage/llpacketack.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llmessage/llpacketack.cpp b/indra/llmessage/llpacketack.cpp index f08d3404ea..c3c022c297 100755 --- a/indra/llmessage/llpacketack.cpp +++ b/indra/llmessage/llpacketack.cpp @@ -50,7 +50,7 @@ LLReliablePacket::LLReliablePacket( mHost = params->mHost; mRetries = params->mRetries; mPingBasedRetry = params->mPingBasedRetry; - mTimeout = params->mTimeout; + mTimeout = F32Seconds(params->mTimeout); mCallback = params->mCallback; mCallbackData = params->mCallbackData; mMessageName = params->mMessageName; @@ -59,13 +59,13 @@ LLReliablePacket::LLReliablePacket( { mRetries = 0; mPingBasedRetry = TRUE; - mTimeout = 0.f; + mTimeout = F32Seconds(0.f); mCallback = NULL; mCallbackData = NULL; mMessageName = NULL; } - mExpirationTime = (F64)((S64)totalTime())/1000000.0 + mTimeout; + mExpirationTime = (F64Seconds)totalTime() + mTimeout; mPacketID = ntohl(*((U32*)(&buf_ptr[PHL_PACKET_ID]))); mSocket = socket; |