md: Recovery speed is wrong
authorXiao Ni <xni@redhat.com>
Thu, 7 Aug 2014 13:37:41 +0000 (09:37 -0400)
committerNeilBrown <neilb@suse.de>
Fri, 8 Aug 2014 02:11:25 +0000 (12:11 +1000)
commitac7e50a3835de2321bcc511e4b6fe736c73c830f
tree9041467bee34379e121835b03fe81bff383136ea
parentaf5628f05db62c656f994b2346897939b5110d6a
md: Recovery speed is wrong

When we calculate the speed of recovery, the numerator that contains
the recovery done sectors.  It's need to subtract the sectors which
don't finish recovery.

Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c