From f289d5d9e7b86c56533d764b3867bfec12571414 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Tue, 13 Nov 2012 00:16:04 -0500 Subject: [PATCH] Make MARKET_IMPORTER_UPDATE_FREQUENCY configurable as debug setting MarketImporterUpdateFreq Change the default to a minute... that should be good? Right? --- indra/newview/app_settings/settings.xml | 12 ++++++++++++ indra/newview/llmarketplacefunctions.cpp | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 7e5a991c7..0bb7d3ed0 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -694,6 +694,18 @@ Found in Advanced->Rendering->Info Displays Value 1 + MarketImporterUpdateFreq + + Comment + How fast, in seconds, the Merchant Outbox will update through all phases +This should be as low as possible, but too low may break functionality + Persist + 1 + Type + F32 + Value + 60.0 + ResetFocusOnSelfClick Comment diff --git a/indra/newview/llmarketplacefunctions.cpp b/indra/newview/llmarketplacefunctions.cpp index 545ad927b..47c8791c9 100644 --- a/indra/newview/llmarketplacefunctions.cpp +++ b/indra/newview/llmarketplacefunctions.cpp @@ -342,7 +342,7 @@ namespace LLMarketplaceImport // Interface class // -static const F32 MARKET_IMPORTER_UPDATE_FREQUENCY = 300.0f; //1.0f; +//static const F32 MARKET_IMPORTER_UPDATE_FREQUENCY = 300.0f; //1.0f; //static void LLMarketplaceInventoryImporter::update() @@ -353,6 +353,7 @@ void LLMarketplaceInventoryImporter::update() if (update_timer.hasExpired()) { LLMarketplaceInventoryImporter::instance().updateImport(); + static LLCachedControl MARKET_IMPORTER_UPDATE_FREQUENCY("MarketImporterUpdateFreq", 10.0f); update_timer.setTimerExpirySec(MARKET_IMPORTER_UPDATE_FREQUENCY); } }