mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
cosmetics
This commit is contained in:
@@ -3689,7 +3689,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
CheckThreatLevel(ThreatLevel.Moderate, "osGetSimulatorMemory");
|
||||
|
||||
long pws = System.Diagnostics.Process.GetCurrentProcess().WorkingSet64;
|
||||
long pws = Util.GetPhysicalMemUse();
|
||||
|
||||
if (pws > Int32.MaxValue)
|
||||
return Int32.MaxValue;
|
||||
@@ -3703,9 +3703,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
CheckThreatLevel(ThreatLevel.Moderate, "osGetSimulatorMemoryKB");
|
||||
|
||||
long pws = System.Diagnostics.Process.GetCurrentProcess().WorkingSet64;
|
||||
long pws = Util.GetPhysicalMemUse();
|
||||
|
||||
if((pws & 0x3FFL) != 0)
|
||||
if ((pws & 0x3FFL) != 0)
|
||||
pws += 0x400L;
|
||||
pws >>= 10;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user