diff options
author | Peter Xu <peterx@redhat.com> | 2018-01-03 20:20:08 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2018-01-15 12:48:08 +0100 |
commit | 4af246a34e3155365e6be9dda201f3467d0498d9 (patch) | |
tree | ef2202e75e0ac913eda9f97bab6db59b429b1040 /migration/migration.h | |
parent | deb74fb6701755a4f864977608ea3919e4970fae (diff) |
migration: split use of MigrationState.total_time
It was used either to:
1. store initial timestamp of migration start, and
2. store total time used by last migration
Let's provide two parameters for each of them. Mix use of the two is
slightly misleading.
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/migration.h')
-rw-r--r-- | migration/migration.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/migration/migration.h b/migration/migration.h index d84bc550b1..d1132b1cf7 100644 --- a/migration/migration.h +++ b/migration/migration.h @@ -115,6 +115,9 @@ struct MigrationState } rp_state; double mbps; + /* Timestamp when recent migration starts (ms) */ + int64_t start_time; + /* Total time used by latest migration (ms) */ int64_t total_time; int64_t downtime; int64_t expected_downtime; |