diff options
author | Justin Clarke Casey | 2008-06-10 23:42:42 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-06-10 23:42:42 +0000 |
commit | 928b32054c50ba5c6324d773e5a02911ace69a78 (patch) | |
tree | 8a1463a97c3bf787f99f5ef573eb6900ae5d9bff /OpenSim/Framework/Statistics | |
parent | * minor: Properly clear the pushed asset cache statistics where the clear-ass... (diff) | |
download | opensim-SC_OLD-928b32054c50ba5c6324d773e5a02911ace69a78.zip opensim-SC_OLD-928b32054c50ba5c6324d773e5a02911ace69a78.tar.gz opensim-SC_OLD-928b32054c50ba5c6324d773e5a02911ace69a78.tar.bz2 opensim-SC_OLD-928b32054c50ba5c6324d773e5a02911ace69a78.tar.xz |
* minor: Report cache figures in rounded up KB instead of with decimal places in show stats
* trade easier readability for pointless accuracy
Diffstat (limited to 'OpenSim/Framework/Statistics')
-rw-r--r-- | OpenSim/Framework/Statistics/SimExtraStatsCollector.cs | 8 |
1 files 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 | |||
163 | sb.Append(Environment.NewLine); | 163 | sb.Append(Environment.NewLine); |
164 | sb.Append( | 164 | sb.Append( |
165 | string.Format( | 165 | string.Format( |
166 | @"Asset cache contains {0,6} assets using {1,10:0.000} K" + Environment.NewLine, | 166 | @"Asset cache contains {0,6} assets using {1,10} K" + Environment.NewLine, |
167 | AssetsInCache, AssetCacheMemoryUsage / 1024.0)); | 167 | AssetsInCache, Math.Round(AssetCacheMemoryUsage / 1024.0))); |
168 | 168 | ||
169 | sb.Append(Environment.NewLine); | 169 | sb.Append(Environment.NewLine); |
170 | sb.Append("TEXTURE STATISTICS"); | 170 | sb.Append("TEXTURE STATISTICS"); |
171 | sb.Append(Environment.NewLine); | 171 | sb.Append(Environment.NewLine); |
172 | sb.Append( | 172 | sb.Append( |
173 | string.Format( | 173 | string.Format( |
174 | @"Texture cache contains {0,6} textures using {1,10:0.000} K | 174 | @"Texture cache contains {0,6} textures using {1,10} K |
175 | Blocked requests for missing textures: {2}" + Environment.NewLine, | 175 | Blocked requests for missing textures: {2}" + Environment.NewLine, |
176 | TexturesInCache, TextureCacheMemoryUsage / 1024.0, | 176 | TexturesInCache, Math.Round(TextureCacheMemoryUsage / 1024.0), |
177 | BlockedMissingTextureRequests)); | 177 | BlockedMissingTextureRequests)); |
178 | 178 | ||
179 | sb.Append(Environment.NewLine); | 179 | sb.Append(Environment.NewLine); |