mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
* 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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user