This was just plain wrong - the old code was calculating "in_bits_block" as the total "in_bytes" * 8. And same problem for out. They should be multiplying just the "in_bytes_block" * 8! That is why the numbers on the graph were showing amounts of block >= pass.