aboutsummaryrefslogtreecommitdiff
path: root/migration/migration-stats.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-05-15 21:57:02 +0200
committerJuan Quintela <quintela@redhat.com>2023-05-18 18:40:51 +0200
commitbd7ceaf6d584b77dd6dbd8af7949d1e91a7c0537 (patch)
tree73a12ec126b1feb9d1ec9e9ead7d118ed9510e9a /migration/migration-stats.c
parent813cd61669e45ee6d5db09a83d03df8f0c6eb5d2 (diff)
migration: We don't need the field rate_limit_used anymore
Since previous commit, we calculate how much data we have send with migration_transferred_bytes() so no need to maintain this counter and remember to always update it. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20230515195709.63843-10-quintela@redhat.com>
Diffstat (limited to 'migration/migration-stats.c')
-rw-r--r--migration/migration-stats.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/migration/migration-stats.c b/migration/migration-stats.c
index 97759a45f3..f98c8260be 100644
--- a/migration/migration-stats.c
+++ b/migration/migration-stats.c
@@ -55,15 +55,9 @@ void migration_rate_set(uint64_t limit)
void migration_rate_reset(QEMUFile *f)
{
- stat64_set(&mig_stats.rate_limit_used, 0);
stat64_set(&mig_stats.rate_limit_start, migration_transferred_bytes(f));
}
-void migration_rate_account(uint64_t len)
-{
- stat64_add(&mig_stats.rate_limit_used, len);
-}
-
uint64_t migration_transferred_bytes(QEMUFile *f)
{
uint64_t multifd = stat64_get(&mig_stats.multifd_bytes);