migration: Fix calculation of bytes_transferred