fixed #16 (diagnostic rate for driver)

using the npackets parameter in the compuation of the expected freq