status: Expose migration_seconds_left

This commit is contained in:
nick
2013-09-23 14:09:25 +01:00
parent 0ae249009c
commit ca9aea0d13
3 changed files with 31 additions and 1 deletions

View File

@@ -46,6 +46,7 @@
* If the server is currently in "listen" mode, this will never be
* true.
*
*
* If is_migrating is true, then a number of other attributes may appear,
* relating to the progress of the migration.
*
@@ -69,6 +70,10 @@
* to send to the destination. Once all the bytes are clean, the migration is
* done.
*
* migration_seconds_left:
* Our current best estimate of how many seconds are left before the migration
* migration is finished.
*
*/
@@ -91,6 +96,7 @@ struct status {
uint64_t migration_duration;
uint64_t migration_speed;
uint64_t migration_speed_limit;
uint64_t migration_seconds_left;
};
/** Create a status object for the given server. */