* Fix mantis 1325. This is a minor issue where 'show assets' would not work fully in the region console
parent
1f57fd4bec
commit
61bba6375c
|
@ -103,6 +103,8 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
long assetBytes = 0;
|
long assetBytes = 0;
|
||||||
|
|
||||||
foreach (TextureImage texture in Textures.Values)
|
foreach (TextureImage texture in Textures.Values)
|
||||||
|
{
|
||||||
|
if (texture != null)
|
||||||
{
|
{
|
||||||
if (texture.Temporary)
|
if (texture.Temporary)
|
||||||
{
|
{
|
||||||
|
@ -111,8 +113,11 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
|
|
||||||
imageBytes += texture.Data.GetLongLength(0);
|
imageBytes += texture.Data.GetLongLength(0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach (AssetInfo asset in Assets.Values)
|
foreach (AssetInfo asset in Assets.Values)
|
||||||
|
{
|
||||||
|
if (asset != null)
|
||||||
{
|
{
|
||||||
if (asset.Temporary)
|
if (asset.Temporary)
|
||||||
{
|
{
|
||||||
|
@ -121,6 +126,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
|
|
||||||
assetBytes += asset.Data.GetLongLength(0);
|
assetBytes += asset.Data.GetLongLength(0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_log.InfoFormat("Temporary Images: {0} Temporary Assets: {1}",
|
m_log.InfoFormat("Temporary Images: {0} Temporary Assets: {1}",
|
||||||
temporaryImages,
|
temporaryImages,
|
||||||
|
|
Loading…
Reference in New Issue