Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: