Fix determining packet sample size