migration: cleanup stats update into function
commitb15df1ae5063c7c181f8f068f9eba7661b3b5e1c
authorPeter Xu <peterx@redhat.com>
Wed, 3 Jan 2018 12:20:13 +0000 (3 20:20 +0800)
committerJuan Quintela <quintela@redhat.com>
Mon, 15 Jan 2018 11:48:10 +0000 (15 12:48 +0100)
treefb418779d4259636b041fa4acde9e8222a5671a0
parent39b9e17905c5ff8302c0ff17af546cbf68e0b4f6
migration: cleanup stats update into function

We have quite a few lines in migration_thread() that calculates some
statistics for the migration interations.  Isolate it into a single
function to improve readability.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c
migration/migration.h