In this GNU Radio issue, Marcus Mueller pointed out that our implementation of Batched File Sink is broken by design. We're currently recording the number of samples per tag as single-precision floats. However, if the number of samples between tags is greater than the maximum integer you can store with single-precision floats we get undefined behaviour. I think this has been causing the mysterious bug faced with longer dwell time frequency sweeps.
In this issue, we should first confirm that our use of single-precision floats to record the number of samples per tag causes unwanted errors in frequency sweeps with longer dwell times. Then, we can redesign and reimplement the block to properly handle this.