aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llcircuit.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llcircuit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/llmessage/llcircuit.cpp b/linden/indra/llmessage/llcircuit.cpp
index 7d3136b..5187948 100644
--- a/linden/indra/llmessage/llcircuit.cpp
+++ b/linden/indra/llmessage/llcircuit.cpp
@@ -105,12 +105,12 @@ LLCircuitData::LLCircuitData(const LLHost &host, TPACKETID in_id)
105 // Need to guarantee that this time is up to date, we may be creating a circuit even though we haven't been 105 // Need to guarantee that this time is up to date, we may be creating a circuit even though we haven't been
106 // running a message system loop. 106 // running a message system loop.
107 F64 mt_sec = LLMessageSystem::getMessageTimeSeconds(TRUE); 107 F64 mt_sec = LLMessageSystem::getMessageTimeSeconds(TRUE);
108 F32 distribution_offset = frand(1.0f); 108 F32 distribution_offset = ll_frand();
109 109
110 mPingTime = mt_sec; 110 mPingTime = mt_sec;
111 mLastPingSendTime = mt_sec + PING_INTERVAL * distribution_offset; 111 mLastPingSendTime = mt_sec + PING_INTERVAL * distribution_offset;
112 mLastPingReceivedTime = mt_sec; 112 mLastPingReceivedTime = mt_sec;
113 mNextPingSendTime = mLastPingSendTime + 0.95*PING_INTERVAL + frand(0.1f*PING_INTERVAL); 113 mNextPingSendTime = mLastPingSendTime + 0.95*PING_INTERVAL + ll_frand(0.1f*PING_INTERVAL);
114 mPeriodTime = mt_sec; 114 mPeriodTime = mt_sec;
115 115
116 mTimeoutCallback = NULL; 116 mTimeoutCallback = NULL;
@@ -804,7 +804,7 @@ void LLCircuit::updateWatchDogTimers(LLMessageSystem *msgsys)
804 if (cdp->updateWatchDogTimers(msgsys)) 804 if (cdp->updateWatchDogTimers(msgsys))
805 { 805 {
806 // Randomize our pings a bit by doing some up to 5% early or late 806 // Randomize our pings a bit by doing some up to 5% early or late
807 F64 dt = 0.95f*PING_INTERVAL + frand(0.1f*PING_INTERVAL); 807 F64 dt = 0.95f*PING_INTERVAL + ll_frand(0.1f*PING_INTERVAL);
808 808
809 // Remove it, and reinsert it with the new next ping time. 809 // Remove it, and reinsert it with the new next ping time.
810 // Always remove before changing the sorting key. 810 // Always remove before changing the sorting key.