Split out HTTP texture bandwidth

This commit is contained in:
Siana Gearz
2013-02-03 22:18:34 +01:00
parent 6a774e4685
commit 2b036c7334
4 changed files with 22 additions and 13 deletions

View File

@@ -610,7 +610,7 @@ void LLGLTexMemBar::draw()
left += LLFontGL::getFontMonospace()->getWidth(text);
F32 bandwidth = LLAppViewer::getTextureFetch()->getTextureBandwidth();
F32 max_bandwidth = gSavedSettings.getF32("ThrottleBandwidthKBPS");
F32 max_bandwidth = gSavedSettings.getF32("HTTPThrottleBandwidth");
color = bandwidth > max_bandwidth ? LLColor4::red : bandwidth > max_bandwidth*.75f ? LLColor4::yellow : text_color;
color[VALPHA] = text_color[VALPHA];
text = llformat("BW:%.0f/%.0f",bandwidth, max_bandwidth);