Merge branch 'master' into presence-refactor

slimupdates
Melanie 2010-01-16 04:40:33 +00:00
commit dc6d37d2fe
1 changed files with 5 additions and 1 deletions

View File

@ -112,7 +112,11 @@ namespace OpenSim.Region.CoreModules.Framework.Monitoring
string xml = "<data>";
foreach (IMonitor monitor in m_monitors)
{
xml += "<" + monitor.ToString() + ">" + monitor.GetValue() + "</" + monitor.ToString() + ">";
string elemName = monitor.ToString();
if (elemName.StartsWith(monitor.GetType().Namespace))
elemName = elemName.Substring(monitor.GetType().Namespace.Length + 1);
xml += "<" + elemName + ">" + monitor.GetValue() + "</" + elemName + ">";
}
xml += "</data>";