mirror of
https://github.com/mii443/qemu.git
synced 2025-09-01 14:49:23 +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:
@ -2648,7 +2648,7 @@ static MigThrError migration_detect_error(MigrationState *s)
|
||||
/* How many bytes have we transferred since the beginning of the migration */
|
||||
static uint64_t migration_total_bytes(MigrationState *s)
|
||||
{
|
||||
return qemu_file_total_transferred(s->to_dst_file) +
|
||||
return qemu_file_transferred(s->to_dst_file) +
|
||||
stat64_get(&mig_stats.multifd_bytes);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user