mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
* Implements OSSL function: osGetSimulatorMemory - returns the current amount of memory allocated to the simulator process (Moderate Threat Level).
* Cleans redundant information out of the Simulator Version. Versions now look like: "OpenSimulator 0.6.9(dev) Unix/Mono" * [Minor] additional log info for MySQLInventoryData
This commit is contained in:
@@ -1007,6 +1007,26 @@ namespace OpenSim.Framework
|
||||
return os;
|
||||
}
|
||||
|
||||
public static string GetRuntimeInformation()
|
||||
{
|
||||
string ru = String.Empty;
|
||||
|
||||
if (Environment.OSVersion.Platform == PlatformID.Unix)
|
||||
ru = "Unix/Mono";
|
||||
else
|
||||
if (Environment.OSVersion.Platform == PlatformID.MacOSX)
|
||||
ru = "OSX/Mono";
|
||||
else
|
||||
{
|
||||
if (Type.GetType("Mono.Runtime") != null)
|
||||
ru = "Win/Mono";
|
||||
else
|
||||
ru = "Win/.NET";
|
||||
}
|
||||
|
||||
return ru;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Is the given string a UUID?
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user