flowtop: Calculate flow rate more carefully