From e2ed5bf6b915ed32a74aff2f687b0dc288cdf0cc Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Sat, 9 Feb 2008 21:25:34 +0000 Subject: * Added count of temporary assets --- .../Framework/Communications/Cache/AssetCache.cs | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'OpenSim/Framework/Communications') diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index 0134f18..9435c3d 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs @@ -74,6 +74,29 @@ namespace OpenSim.Framework.Communications.Cache RequestedAssets.Count, RequestedTextures.Count, RequestLists.Count ); + + int temporaryImages = 0; + int temporaryAssets = 0; + + foreach (TextureImage texture in Textures.Values) + { + if(texture.Temporary) + { + temporaryImages++; + } + } + + foreach (AssetInfo asset in Assets.Values) + { + if (asset.Temporary) + { + temporaryAssets++; + } + } + + m_log.InfoFormat("Temporary Images:{0} Temporary Assets:{1}", + temporaryImages, + temporaryAssets ); } public void Clear() -- cgit v1.1