zrhoffman commented on code in PR #7272:
URL: https://github.com/apache/trafficcontrol/pull/7272#discussion_r1064955182
##########
traffic_router/core/src/main/java/org/apache/traffic_control/traffic_router/core/router/StatTracker.java:
##########
@@ -402,6 +402,9 @@ private static void incTally(final Track t, final Tallies
tallies) {
break;
case CZ:
tallies.czCount++;
+ if (tallies.czCount < 0) {
+ tallies.czCount = Integer.MAX_VALUE;
+ }
Review Comment:
If `int` type is overflowing, `czCount` should be a `long`, not an `int`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]