* minor: Report cache figures in rounded up KB instead of with decimal places in show stats

* trade easier readability for pointless accuracy
0.6.0-stable
Justin Clarke Casey 2008-06-10 23:42:42 +00:00
parent 3794f25ebd
commit 928b32054c
1 changed files with 4 additions and 4 deletions

View File

@ -163,17 +163,17 @@ namespace OpenSim.Framework.Statistics
sb.Append(Environment.NewLine);
sb.Append(
string.Format(
@"Asset cache contains {0,6} assets using {1,10:0.000} K" + Environment.NewLine,
AssetsInCache, AssetCacheMemoryUsage / 1024.0));
@"Asset cache contains {0,6} assets using {1,10} K" + Environment.NewLine,
AssetsInCache, Math.Round(AssetCacheMemoryUsage / 1024.0)));
sb.Append(Environment.NewLine);
sb.Append("TEXTURE STATISTICS");
sb.Append(Environment.NewLine);
sb.Append(
string.Format(
@"Texture cache contains {0,6} textures using {1,10:0.000} K
@"Texture cache contains {0,6} textures using {1,10} K
Blocked requests for missing textures: {2}" + Environment.NewLine,
TexturesInCache, TextureCacheMemoryUsage / 1024.0,
TexturesInCache, Math.Round(TextureCacheMemoryUsage / 1024.0),
BlockedMissingTextureRequests));
sb.Append(Environment.NewLine);