fix(benchmark): totalBootSec null when readySec=0 (PS falsy 0.0)

if ($t.ready) evaluates false when ready=0.0 — use $null -ne guard.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-24 00:07:04 +02:00
parent 4f9149f7e2
commit 855e9d7b3f
+1 -1
View File
@@ -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) [math]::Round($t.clone + $t.start + $t.ip + $t.ready, 2)
} else { $null } } else { $null }