From 6573e2ee2f2a5df57e40a1fa83688477e9d15ff3 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 13 Mar 2009 18:36:24 +0000 Subject: * Remove asset cache size and texture stat reports from ASSET STATS since these are now inaccurate * Correct count of assets in cache --- OpenSim/Framework/Communications/Cache/AssetCache.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'OpenSim/Framework/Communications') diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index dfbdb09..7d06a1e 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs @@ -312,18 +312,20 @@ namespace OpenSim.Framework.Communications.Cache { m_assetServer.StoreAsset(asset); } + + if (StatsManager.SimExtraStats != null) + StatsManager.SimExtraStats.AddAsset(asset); } } public void ExpireAsset(UUID uuid) { - // uuid is unique, so no need to worry about it showing up - // in the 2 caches differently. Also, locks are probably - // needed in all of this, or move to synchronized non - // generic forms for Dictionaries. if (m_memcache.Contains(uuid)) { m_memcache.Remove(uuid); + + if (StatsManager.SimExtraStats != null) + StatsManager.SimExtraStats.RemoveAsset(uuid); } } -- cgit v1.1