This should make the cache-full situation a lot more benign

I should be ashamed of myself, i took ugly, terrible code and uglied it up even more.
This commit is contained in:
Siana Gearz
2013-12-09 08:35:21 +01:00
parent e182173ee2
commit 64e7be0321
3 changed files with 36 additions and 11 deletions

View File

@@ -118,12 +118,7 @@ LLPanelNetwork::~LLPanelNetwork()
void LLPanelNetwork::apply()
{
U32 cache_size = (U32)childGetValue("cache_size").asInteger();
if (gSavedSettings.getU32("CacheSize") != cache_size)
{
onClickClearCache(this);
gSavedSettings.setU32("CacheSize", cache_size);
}
gSavedSettings.setU32("CacheSize", childGetValue("cache_size").asInteger());
gSavedSettings.setF32("ThrottleBandwidthKBPS", childGetValue("max_bandwidth").asReal());
gSavedSettings.setF32("HTTPThrottleBandwidth", childGetValue("tex_bandwidth").asReal());