remove incorrect gaps caused by the end time of trace at the end of data point at position number of sample -1 in low sample rate data