mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
* Fix mantis 1325. This is a minor issue where 'show assets' would not work fully in the region console
This commit is contained in:
@@ -104,22 +104,28 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
|
||||
foreach (TextureImage texture in Textures.Values)
|
||||
{
|
||||
if (texture.Temporary)
|
||||
if (texture != null)
|
||||
{
|
||||
temporaryImages++;
|
||||
}
|
||||
if (texture.Temporary)
|
||||
{
|
||||
temporaryImages++;
|
||||
}
|
||||
|
||||
imageBytes += texture.Data.GetLongLength(0);
|
||||
imageBytes += texture.Data.GetLongLength(0);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (AssetInfo asset in Assets.Values)
|
||||
{
|
||||
if (asset.Temporary)
|
||||
if (asset != null)
|
||||
{
|
||||
temporaryAssets++;
|
||||
}
|
||||
if (asset.Temporary)
|
||||
{
|
||||
temporaryAssets++;
|
||||
}
|
||||
|
||||
assetBytes += asset.Data.GetLongLength(0);
|
||||
assetBytes += asset.Data.GetLongLength(0);
|
||||
}
|
||||
}
|
||||
|
||||
m_log.InfoFormat("Temporary Images: {0} Temporary Assets: {1}",
|
||||
|
||||
Reference in New Issue
Block a user