diff options
author | lbsa71 | 2008-02-09 21:25:34 +0000 |
---|---|---|
committer | lbsa71 | 2008-02-09 21:25:34 +0000 |
commit | e2ed5bf6b915ed32a74aff2f687b0dc288cdf0cc (patch) | |
tree | 2e4b8a69b21d4ff4f8868be1bc178a8337f2618c | |
parent | * added two new commands (for debug/disaster recovery) (diff) | |
download | opensim-SC_OLD-e2ed5bf6b915ed32a74aff2f687b0dc288cdf0cc.zip opensim-SC_OLD-e2ed5bf6b915ed32a74aff2f687b0dc288cdf0cc.tar.gz opensim-SC_OLD-e2ed5bf6b915ed32a74aff2f687b0dc288cdf0cc.tar.bz2 opensim-SC_OLD-e2ed5bf6b915ed32a74aff2f687b0dc288cdf0cc.tar.xz |
* Added count of temporary assets
-rw-r--r-- | OpenSim/Framework/Communications/Cache/AssetCache.cs | 23 |
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() |