ryandotsmith/log-shuttle — pull request #5 by kr (2012-11-10 23:32:56+00:00)
Title: fix race

Something could increment one of the counters
after you read the old value and before you reset
it to 0. If you instead atomically subtract the old
value, then all events will still be counted.