aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerthrottle.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewerthrottle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewerthrottle.cpp b/linden/indra/newview/llviewerthrottle.cpp
index 75357ba..ceff856 100644
--- a/linden/indra/newview/llviewerthrottle.cpp
+++ b/linden/indra/newview/llviewerthrottle.cpp
@@ -307,7 +307,7 @@ void LLViewerThrottle::updateDynamicThrottle()
307 } 307 }
308 mUpdateTimer.reset(); 308 mUpdateTimer.reset();
309 309
310 if (gViewerStats->mPacketsLostPercentStat.getMean() > TIGHTEN_THROTTLE_THRESHOLD) 310 if (LLViewerStats::getInstance()->mPacketsLostPercentStat.getMean() > TIGHTEN_THROTTLE_THRESHOLD)
311 { 311 {
312 if (mThrottleFrac <= MIN_FRACTIONAL || mCurrentBandwidth / 1024.0f <= MIN_BANDWIDTH) 312 if (mThrottleFrac <= MIN_FRACTIONAL || mCurrentBandwidth / 1024.0f <= MIN_BANDWIDTH)
313 { 313 {
@@ -320,7 +320,7 @@ void LLViewerThrottle::updateDynamicThrottle()
320 mCurrent.sendToSim(); 320 mCurrent.sendToSim();
321 llinfos << "Tightening network throttle to " << mCurrentBandwidth << llendl; 321 llinfos << "Tightening network throttle to " << mCurrentBandwidth << llendl;
322 } 322 }
323 else if (gViewerStats->mPacketsLostPercentStat.getMean() <= EASE_THROTTLE_THRESHOLD) 323 else if (LLViewerStats::getInstance()->mPacketsLostPercentStat.getMean() <= EASE_THROTTLE_THRESHOLD)
324 { 324 {
325 if (mThrottleFrac >= MAX_FRACTIONAL || mCurrentBandwidth / 1024.0f >= MAX_BANDWIDTH) 325 if (mThrottleFrac >= MAX_FRACTIONAL || mCurrentBandwidth / 1024.0f >= MAX_BANDWIDTH)
326 { 326 {