Introduced a bug fix for calculating the data_capture for sampling=custom.
data_capture
sampling=custom