From be83ac37f97eaf30dda1c8d6cd1700bbe5ee8f4b Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 21 Mar 2008 20:19:43 +0000 Subject: * Small adjust to last commit's logging so we only print out one warning when we start dropping requests --- OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Environment/Modules') diff --git a/OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs b/OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs index 06a5108..d233263 100644 --- a/OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs +++ b/OpenSim/Region/Environment/Modules/UserTextureDownloadService.cs @@ -140,9 +140,12 @@ namespace OpenSim.Region.Environment.Modules if (dispatchedTextureRequestCounts[e.RequestedAssetID] > MAX_ALLOWED_TEXTURE_REQUESTS) { - m_log.WarnFormat( - "[USER TEXTURE DOWNLOAD SERVICE]: No longer sending already dispatched texture {0} to {1} since it has made more than {2} requests for it", - e.RequestedAssetID, m_client.AgentId, MAX_ALLOWED_TEXTURE_REQUESTS); + if (MAX_ALLOWED_TEXTURE_REQUESTS + 1 == dispatchedTextureRequestCounts[e.RequestedAssetID]) + { + m_log.WarnFormat( + "[USER TEXTURE DOWNLOAD SERVICE]: No longer sending already dispatched texture {0} to {1} since it has made more than {2} requests for it", + e.RequestedAssetID, m_client.AgentId, MAX_ALLOWED_TEXTURE_REQUESTS); + } return; } -- cgit v1.1