check for NaN before logging tps