mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-17 07:02:03 -06: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:
parent
f87e4d6d43
commit
6da835d42a
6 changed files with 15 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue