fix potential counter overflow for early event detection
Authored by: pbuchbinder 2023-05-17
Parent: [r2706]
Child: [r2708]