* Remove asset cache size and texture stat reports from ASSET STATS since these are now inaccurate

* Correct count of assets in cache
This commit is contained in:
Justin Clarke Casey
2009-03-13 18:36:24 +00:00
parent d17314f331
commit 6573e2ee2f
2 changed files with 41 additions and 6 deletions

View File

@@ -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);
}
}