It was buggy in that it did not extend to 100%, if nobody else
was part of the group.
Signed-off-by: Jens Axboe <axboe@fb.com>
perc += bsp->perc;
}
- if (perc > 100) {
+ if (perc > 100 && perc_missing > 1) {
log_err("fio: bssplit percentages add to more than 100%%\n");
free(bssplit);
return 1;
* them.
*/
if (perc_missing) {
+ if (perc_missing == 1)
+ perc = 100;
for (i = 0; i < o->bssplit_nr[ddir]; i++) {
struct bssplit *bsp = &bssplit[i];