diff options
author | Juan Quintela <quintela@redhat.com> | 2023-05-15 21:57:02 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-05-18 18:40:51 +0200 |
commit | bd7ceaf6d584b77dd6dbd8af7949d1e91a7c0537 (patch) | |
tree | 73a12ec126b1feb9d1ec9e9ead7d118ed9510e9a /migration/migration-stats.h | |
parent | 813cd61669e45ee6d5db09a83d03df8f0c6eb5d2 (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.h')
-rw-r--r-- | migration/migration-stats.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/migration/migration-stats.h b/migration/migration-stats.h index 4c4daa2e97..ac2260e987 100644 --- a/migration/migration-stats.h +++ b/migration/migration-stats.h @@ -90,10 +90,6 @@ typedef struct { */ Stat64 rate_limit_max; /* - * Amount of data we have sent in the current cycle. - */ - Stat64 rate_limit_used; - /* * Total number of bytes transferred. */ Stat64 transferred; @@ -106,16 +102,6 @@ typedef struct { extern MigrationAtomicStats mig_stats; /** - * migration_rate_account: Increase the number of bytes transferred. - * - * Report on a number of bytes the have been transferred that need to - * be applied to the rate limiting calcuations. - * - * @len: amount of bytes transferred - */ -void migration_rate_account(uint64_t len); - -/** * migration_rate_get: Get the maximum amount that can be transferred. * * Returns the maximum number of bytes that can be transferred in a cycle. |