diff options
Diffstat (limited to 'OpenSim/Framework/Monitoring/Stats')
-rw-r--r-- | OpenSim/Framework/Monitoring/Stats/Stat.cs | 3 |
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; |