fix overflows and underflows in linux cpu metrics