unbreak volume calculation

This commit is contained in:
Alexandre Ratchov 2012-10-08 17:46:48 +02:00
parent 857707b227
commit a525ed859b
1 changed files with 1 additions and 0 deletions

View File

@ -719,6 +719,7 @@ dev_mix_setmaster(struct dev *d)
i->mix.slot_cmax >= j->mix.slot_cmin)
n++;
}
weight /= n;
}
if (weight > i->mix.maxweight)
weight = i->mix.maxweight;