aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
authorlbsa712008-02-09 21:25:34 +0000
committerlbsa712008-02-09 21:25:34 +0000
commite2ed5bf6b915ed32a74aff2f687b0dc288cdf0cc (patch)
tree2e4b8a69b21d4ff4f8868be1bc178a8337f2618c /OpenSim/Framework/Communications
parent* added two new commands (for debug/disaster recovery) (diff)
downloadopensim-SC-e2ed5bf6b915ed32a74aff2f687b0dc288cdf0cc.zip
opensim-SC-e2ed5bf6b915ed32a74aff2f687b0dc288cdf0cc.tar.gz
opensim-SC-e2ed5bf6b915ed32a74aff2f687b0dc288cdf0cc.tar.bz2
opensim-SC-e2ed5bf6b915ed32a74aff2f687b0dc288cdf0cc.tar.xz
* Added count of temporary assets
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r--OpenSim/Framework/Communications/Cache/AssetCache.cs23
1 files changed, 23 insertions, 0 deletions
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
74 RequestedAssets.Count, 74 RequestedAssets.Count,
75 RequestedTextures.Count, 75 RequestedTextures.Count,
76 RequestLists.Count ); 76 RequestLists.Count );
77
78 int temporaryImages = 0;
79 int temporaryAssets = 0;
80
81 foreach (TextureImage texture in Textures.Values)
82 {
83 if(texture.Temporary)
84 {
85 temporaryImages++;
86 }
87 }
88
89 foreach (AssetInfo asset in Assets.Values)
90 {
91 if (asset.Temporary)
92 {
93 temporaryAssets++;
94 }
95 }
96
97 m_log.InfoFormat("Temporary Images:{0} Temporary Assets:{1}",
98 temporaryImages,
99 temporaryAssets );
77 } 100 }
78 101
79 public void Clear() 102 public void Clear()