protect perf statistics against long overflow