Return the int difference between the two, not a bool.
Reported-by: Yury Gribov <>
Signed-off-by: Jens Axboe <axboe@fb.com>
const struct bssplit *bsp1 = p1;
const struct bssplit *bsp2 = p2;
const struct bssplit *bsp1 = p1;
const struct bssplit *bsp2 = p2;
- return bsp1->perc < bsp2->perc;
+ return (int) bsp1->perc - (int) bsp2->perc;
}
static int bssplit_ddir(struct thread_options *o, int ddir, char *str)
}
static int bssplit_ddir(struct thread_options *o, int ddir, char *str)