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