From 928b32054c50ba5c6324d773e5a02911ace69a78 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 10 Jun 2008 23:42:42 +0000 Subject: * minor: Report cache figures in rounded up KB instead of with decimal places in show stats * trade easier readability for pointless accuracy --- OpenSim/Framework/Statistics/SimExtraStatsCollector.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs b/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs index 0a20f33..6c67c9e 100644 --- a/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs +++ b/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs @@ -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); -- cgit v1.1