diff options
Diffstat (limited to 'migration/migration-stats.c')
-rw-r--r-- | migration/migration-stats.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/migration/migration-stats.c b/migration/migration-stats.c index 0890220ba5..39e98d6fa9 100644 --- a/migration/migration-stats.c +++ b/migration/migration-stats.c @@ -59,3 +59,8 @@ void migration_rate_account(uint64_t len) { stat64_add(&mig_stats.rate_limit_used, len); } + +uint64_t migration_transferred_bytes(QEMUFile *f) +{ + return qemu_file_transferred(f) + stat64_get(&mig_stats.multifd_bytes); +} |