Skip to content

Commit 875207c

Browse files
committed
Fix cross-platform Phase 2 analyzers
1 parent f63b215 commit 875207c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tools/perf/analyze-phase2-abba.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,5 +601,5 @@ Write-JsonResult ([ordered]@{
601601
pairing = "adjacent positions 1-2 and 3-4 within each restart-per-run block"
602602
estimator = "exp(median(paired log(B/A)))"
603603
confidenceInterval = "deterministic paired bootstrap percentile 95% CI"
604-
results = @($results)
604+
results = @($results.ToArray())
605605
})

tools/perf/analyze-phase2-pcap.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,8 @@ function Export-PcapFieldsCsv {
660660

661661
& $tshark @arguments 2> $ErrorPath | Set-Content -LiteralPath $CsvPath -Encoding UTF8
662662
$exitCode = $LASTEXITCODE
663-
$standardError = if (Test-Path -LiteralPath $ErrorPath) {
664-
Get-Content -LiteralPath $ErrorPath -Raw -Encoding UTF8
663+
[string]$standardError = if (Test-Path -LiteralPath $ErrorPath) {
664+
[string](Get-Content -LiteralPath $ErrorPath -Raw -Encoding UTF8)
665665
} else { "" }
666666
if ($exitCode -ne 0) {
667667
throw "tshark field export failed (exit $exitCode): $standardError"

0 commit comments

Comments
 (0)