aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2010-01-16 04:38:24 +0000
committerMelanie2010-01-16 04:38:24 +0000
commitc9276f20518d3e6895ace534a1098f49eb2dbf1c (patch)
tree6c64bb050d4413e83192a842c2de9af8c6ee057b /OpenSim
parentAdd "create user" instructions to README.txt (diff)
downloadopensim-SC_OLD-c9276f20518d3e6895ace534a1098f49eb2dbf1c.zip
opensim-SC_OLD-c9276f20518d3e6895ace534a1098f49eb2dbf1c.tar.gz
opensim-SC_OLD-c9276f20518d3e6895ace534a1098f49eb2dbf1c.tar.bz2
opensim-SC_OLD-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')
-rw-r--r--OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs6
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