diff options
author | Justin Clarke Casey | 2009-04-03 17:14:51 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-04-03 17:14:51 +0000 |
commit | 5146cb7a72d7f41dd9a3c022b48a75138259d977 (patch) | |
tree | 0b1045b389dc49083cebf64798b80a7ea326cd42 /OpenSim/Region/CoreModules | |
parent | Added one more delegate to Caps, and a few guards, so that these objects can ... (diff) | |
download | opensim-SC-5146cb7a72d7f41dd9a3c022b48a75138259d977.zip opensim-SC-5146cb7a72d7f41dd9a3c022b48a75138259d977.tar.gz opensim-SC-5146cb7a72d7f41dd9a3c022b48a75138259d977.tar.bz2 opensim-SC-5146cb7a72d7f41dd9a3c022b48a75138259d977.tar.xz |
* refactor: Call StatsReporter methods directly rather than through Scene (as WebStatsModule was doing)
* Assume that StatsReporter is always present (possibly as a no-op impl) rather than doing null checks
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Agent/TextureDownload/UserTextureDownloadService.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs b/OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs index 124f0f6..f976087 100644 --- a/OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs +++ b/OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs | |||
@@ -291,7 +291,7 @@ namespace OpenSim.Region.CoreModules.Agent.TextureDownload | |||
291 | { | 291 | { |
292 | sender.Sending = false; | 292 | sender.Sending = false; |
293 | //m_log.DebugFormat("[TEXTURE]: Removing download stat for {0}", sender.assetID); | 293 | //m_log.DebugFormat("[TEXTURE]: Removing download stat for {0}", sender.assetID); |
294 | m_scene.AddPendingDownloads(-1); | 294 | m_scene.StatsReporter.AddPendingDownloads(-1); |
295 | } | 295 | } |
296 | } | 296 | } |
297 | } | 297 | } |
diff --git a/OpenSim/Region/CoreModules/Agent/TextureDownload/UserTextureDownloadService.cs b/OpenSim/Region/CoreModules/Agent/TextureDownload/UserTextureDownloadService.cs index ae71fda..e4a2b21 100644 --- a/OpenSim/Region/CoreModules/Agent/TextureDownload/UserTextureDownloadService.cs +++ b/OpenSim/Region/CoreModules/Agent/TextureDownload/UserTextureDownloadService.cs | |||
@@ -147,7 +147,7 @@ namespace OpenSim.Region.CoreModules.Agent.TextureDownload | |||
147 | return; | 147 | return; |
148 | } | 148 | } |
149 | 149 | ||
150 | m_scene.AddPendingDownloads(1); | 150 | m_scene.StatsReporter.AddPendingDownloads(1); |
151 | 151 | ||
152 | TextureSender.TextureSender requestHandler = new TextureSender.TextureSender(m_client, e.DiscardLevel, e.PacketNumber); | 152 | TextureSender.TextureSender requestHandler = new TextureSender.TextureSender(m_client, e.DiscardLevel, e.PacketNumber); |
153 | m_textureSenders.Add(e.RequestedAssetID, requestHandler); | 153 | m_textureSenders.Add(e.RequestedAssetID, requestHandler); |