Skip to content

Commit 0c67124

Browse files
committed
copilot feedback
Signed-off-by: Jens Reinecke <[email protected]>
1 parent cd54a47 commit 0c67124

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/features/cpu-states/cpu-states.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ export class CpuStates {
206206
states.lastCycles = newCycles;
207207
states.states += BigInt(cycleAdd);
208208
if (reason) {
209-
// Stopped events always have a reason, only update history for them
209+
// Only update history when a reason is present, i.e. for stopped events.
210+
// Periodic updates do not have a reason and should not create history entries.
210211
states.statesHistory.updateHistory(states.states, threadId, reason);
211212
}
212213
}

0 commit comments

Comments
 (0)