runtime: make different assignments more explicit

This commit is contained in:
Marcel Meyer 2025-04-12 00:13:10 +02:00
parent b415b487f7
commit aea61fb3a0
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -53,8 +53,10 @@ func TestReadGCStats(t *testing.T) {
t.Errorf("stats.Pause[%d] = %d, want %d", i, dt, mstats.PauseNs[off])
}
maximum = max(maximum, dt)
if minimum > dt || i == 0 {
if i == 0 {
minimum = dt
} else {
minimum = min(minimum, dt)
}
off = (off + len(mstats.PauseNs) - 1) % len(mstats.PauseNs)
}