From 855e9d7b3fb6081c1eb477fb6cbb319c1924229f Mon Sep 17 00:00:00 2001 From: Simone Date: Sun, 24 May 2026 00:07:04 +0200 Subject: [PATCH] fix(benchmark): totalBootSec null when readySec=0 (PS falsy 0.0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit if ($t.ready) evaluates false when ready=0.0 — use $null -ne guard. Co-Authored-By: Claude Sonnet 4.6 --- scripts/Measure-CIBenchmark.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Measure-CIBenchmark.ps1 b/scripts/Measure-CIBenchmark.ps1 index 2d95084..d51c103 100644 --- a/scripts/Measure-CIBenchmark.ps1 +++ b/scripts/Measure-CIBenchmark.ps1 @@ -239,7 +239,7 @@ for ($i = 1; $i -le $Iterations; $i++) { } } - $totalBootSec = if ($t.ip -and $t.ready) { + $totalBootSec = if ($null -ne $t.ip -and $null -ne $t.ready) { [math]::Round($t.clone + $t.start + $t.ip + $t.ready, 2) } else { $null }