aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-09-09 18:52:07 +0100
committerJustin Clark-Casey (justincc)2014-09-09 18:56:58 +0100
commite271607befc952c8b9a000a7405f871fa10e92a0 (patch)
tree2c6d3cd93d4ceb05a9331e17d9f0e2ee2dcd27c4 /OpenSim/Framework
parentFor monitoring purposes, start non-timeout tasks (which do not currently use ... (diff)
downloadopensim-SC_OLD-e271607befc952c8b9a000a7405f871fa10e92a0.zip
opensim-SC_OLD-e271607befc952c8b9a000a7405f871fa10e92a0.tar.gz
opensim-SC_OLD-e271607befc952c8b9a000a7405f871fa10e92a0.tar.bz2
opensim-SC_OLD-e271607befc952c8b9a000a7405f871fa10e92a0.tar.xz
For stat names containing periods, replace with '#' rather than throw exception
In relation to http://opensimulator.org/mantis/view.php?id=7317
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Monitoring/Stats/Stat.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Framework/Monitoring/Stats/Stat.cs b/OpenSim/Framework/Monitoring/Stats/Stat.cs
index e095801..df55314 100644
--- a/OpenSim/Framework/Monitoring/Stats/Stat.cs
+++ b/OpenSim/Framework/Monitoring/Stats/Stat.cs
@@ -171,7 +171,8 @@ namespace OpenSim.Framework.Monitoring
171 foreach (char c in DisallowedShortNameCharacters) 171 foreach (char c in DisallowedShortNameCharacters)
172 { 172 {
173 if (shortName.IndexOf(c) != -1) 173 if (shortName.IndexOf(c) != -1)
174 throw new Exception(string.Format("Stat name {0} cannot contain character {1}", shortName, c)); 174 shortName = shortName.Replace('c', '#');
175// throw new Exception(string.Format("Stat name {0} cannot contain character {1}", shortName, c));
175 } 176 }
176 177
177 ShortName = shortName; 178 ShortName = shortName;