News for hackers. Stuff that matters.
Re:Why Not Just Do Simple C++ RAII in C? by cozzyd on Thursday May 23, 2024 @05:32PM (#40460153)
I think wraparound generally is better for statistics counters like the ones in the linked code, since often you want to check the number of packets/errors per some time interval, which you can do with overflow (as long as the time interval isn't so long that you overflow within a period) but not with saturation.

There are no comments on this comment yet.