Shorten the names of the tags in monitorstats summary to the immediate type

name sans namespace. Needs adjustment of scripts using these!.
Request my name still uses full namespace path.
mysql-performance
Melanie 2010-01-16 04:38:24 +00:00
rodič 046a195c2e
revize c9276f2051
1 změnil soubory, kde provedl 5 přidání a 1 odebrání

Zobrazit soubor

@ -112,7 +112,11 @@ namespace OpenSim.Region.CoreModules.Framework.Monitoring
string xml = "<data>"; string xml = "<data>";
foreach (IMonitor monitor in m_monitors) 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>"; xml += "</data>";