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:
@@ -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 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user