Fix SPM latency calculation.