Update of /cvsroot/mvp-xml/Common/v2/src/Serialization
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7667/v2/src/Serialization
Modified Files:
PerfCounterManager.cs
Log Message:
Index: PerfCounterManager.cs
===================================================================
RCS file: /cvsroot/mvp-xml/Common/v2/src/Serialization/PerfCounterManager.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- PerfCounterManager.cs 28 Oct 2005 20:07:56 -0000 1.1
+++ PerfCounterManager.cs 30 Oct 2005 12:01:04 -0000 1.2
@@ -43,7 +43,8 @@
counters.Add(GetCacheHitCounterData());
counters.Add(GetCachedInstancesCounterData());
PerformanceCounterCategory.Create(
- CATEGORY, CATEGORY_DESCRIPTION, counters);
+ CATEGORY, CATEGORY_DESCRIPTION, PerformanceCounterCategoryType.SingleInstance,
+ counters);
}
}
@@ -85,7 +86,7 @@
private string GetCounterInstanceName( int index )
{
string fileName = Environment.CommandLine.Split(' ')[0];
- foreach( char c in System.IO.Path.InvalidPathChars )
+ foreach( char c in System.IO.Path.GetInvalidPathChars() )
{
fileName = fileName.Replace( c, '%' );
}
|