diff options
author | Melanie | 2010-01-16 04:38:24 +0000 |
---|---|---|
committer | Melanie | 2010-01-16 04:38:24 +0000 |
commit | c9276f20518d3e6895ace534a1098f49eb2dbf1c (patch) | |
tree | 6c64bb050d4413e83192a842c2de9af8c6ee057b /OpenSim/Region/CoreModules | |
parent | Add "create user" instructions to README.txt (diff) | |
download | opensim-SC-c9276f20518d3e6895ace534a1098f49eb2dbf1c.zip opensim-SC-c9276f20518d3e6895ace534a1098f49eb2dbf1c.tar.gz opensim-SC-c9276f20518d3e6895ace534a1098f49eb2dbf1c.tar.bz2 opensim-SC-c9276f20518d3e6895ace534a1098f49eb2dbf1c.tar.xz |
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.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs b/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs index d84f4ea..96d65d7 100644 --- a/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs +++ b/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs | |||
@@ -112,7 +112,11 @@ namespace OpenSim.Region.CoreModules.Framework.Monitoring | |||
112 | string xml = "<data>"; | 112 | string xml = "<data>"; |
113 | foreach (IMonitor monitor in m_monitors) | 113 | foreach (IMonitor monitor in m_monitors) |
114 | { | 114 | { |
115 | xml += "<" + monitor.ToString() + ">" + monitor.GetValue() + "</" + monitor.ToString() + ">"; | 115 | string elemName = monitor.ToString(); |
116 | if (elemName.StartsWith(monitor.GetType().Namespace)) | ||
117 | elemName = elemName.Substring(monitor.GetType().Namespace.Length + 1); | ||
118 | |||
119 | xml += "<" + elemName + ">" + monitor.GetValue() + "</" + elemName + ">"; | ||
116 | } | 120 | } |
117 | xml += "</data>"; | 121 | xml += "</data>"; |
118 | 122 | ||