Issue #32: Make the file duration count more reliable (particularly with long files). Instead of using a simple average, sample the packet duration for n packets and then calculate the average based on those.