Display avg priority as group priority
authorHannes Reinecke <hare@suse.de>
Wed, 17 Mar 2010 07:32:51 +0000 (08:32 +0100)
committerHannes Reinecke <hare@suse.de>
Tue, 17 May 2011 10:38:42 +0000 (12:38 +0200)
commit750db1f0dc08bf1d96ce64d32786dfe07b8ae3f9
tree614827bf470ccd3c134b61bc781b49344ca7a9fa
parent155f87ade05e27205329f4e833212d330c60b293
Display avg priority as group priority

Now average priority is used as path group priority, instead of sum of
priorities of the paths. But while displaying group priority, sum is
being displayed. Change it to print the average priority.

When there are no enabled paths, print 0 as priority.

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/print.c