Skip to content

Commit f8d7b76

Browse files
authored
Be more flexible to allow multiple perf data files ending with perf.data.txt (#76)
* Be more flexible to allow multiple perf data files ending with perf.data.txt
1 parent 9d7071b commit f8d7b76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PerfDataExtensions/PerfDataExtensions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
5-
<Version>1.2</Version>
5+
<Version>1.2.1</Version>
66
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
77
<Authors>Microsoft</Authors>
88
<Company>Microsoft Corp.</Company>

PerfDataExtensions/SourceDataCookers/PerfDataProcessingSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected override void SetApplicationEnvironmentCore(IApplicationEnvironment ap
6161

6262
protected override bool IsDataSourceSupportedCore(IDataSource dataSource)
6363
{
64-
return dataSource.IsFile() && StringComparer.OrdinalIgnoreCase.Equals("perf.data.txt", Path.GetFileName(dataSource.Uri.LocalPath));
64+
return dataSource.IsFile() && Path.GetFileName(dataSource.Uri.LocalPath).EndsWith("perf.data.txt", StringComparison.OrdinalIgnoreCase);
6565
}
6666

6767
protected override ICustomDataProcessor CreateProcessorCore(

0 commit comments

Comments
 (0)