NR_ACCUMULATED_SAMPLES
running_len -= running_len/NR_ACCUMULATED_SAMPLES;
avg_len = running_len/NR_ACCUMULATED_SAMPLES;