mirror of
https://github.com/mii443/qemu.git
synced 2025-08-29 10:29:27 +00:00
qemu-file: Remove total from qemu_file_total_transferred_*()
Function is already quite long. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20230508130909.65420-7-quintela@redhat.com>
This commit is contained in:
@ -747,7 +747,7 @@ static int block_save_setup(QEMUFile *f, void *opaque)
|
||||
static int block_save_iterate(QEMUFile *f, void *opaque)
|
||||
{
|
||||
int ret;
|
||||
uint64_t last_bytes = qemu_file_total_transferred(f);
|
||||
uint64_t last_bytes = qemu_file_transferred(f);
|
||||
|
||||
trace_migration_block_save("iterate", block_mig_state.submitted,
|
||||
block_mig_state.transferred);
|
||||
@ -799,7 +799,7 @@ static int block_save_iterate(QEMUFile *f, void *opaque)
|
||||
}
|
||||
|
||||
qemu_put_be64(f, BLK_MIG_FLAG_EOS);
|
||||
uint64_t delta_bytes = qemu_file_total_transferred(f) - last_bytes;
|
||||
uint64_t delta_bytes = qemu_file_transferred(f) - last_bytes;
|
||||
return (delta_bytes > 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user