From 686f16cedda4daac1663f30b17e65bde7fc4af2b Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 10 Jun 2008 23:19:38 +0000 Subject: * If a server has statistics, print these out to the log every hour to get some idea of how these evolve * When returning GC.GetTotalMemory(), force collection first in order to get more accurate figures --- OpenSim/Framework/Statistics/BaseStatsCollector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Framework/Statistics/BaseStatsCollector.cs') diff --git a/OpenSim/Framework/Statistics/BaseStatsCollector.cs b/OpenSim/Framework/Statistics/BaseStatsCollector.cs index c888f4c..225c551 100644 --- a/OpenSim/Framework/Statistics/BaseStatsCollector.cs +++ b/OpenSim/Framework/Statistics/BaseStatsCollector.cs @@ -43,7 +43,7 @@ namespace OpenSim.Framework.Statistics sb.Append( string.Format( "Allocated to OpenSim : {0} MB" + Environment.NewLine, - Math.Round(GC.GetTotalMemory(false) / 1024.0 / 1024.0))); + Math.Round(GC.GetTotalMemory(true) / 1024.0 / 1024.0))); return sb.ToString(); } -- cgit v1.1