From: Jens Axboe Date: Wed, 31 Jul 2019 16:54:43 +0000 (-0600) Subject: Merge branch 'gnuplot-tabs' of https://github.com/kapsh/fio X-Git-Tag: fio-3.16~45 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=9dabe51c828e7d7951123e23f56dfdca4eda1dc4;hp=4cbe3909942e913f3a71113bf4036824fcb54953 Merge branch 'gnuplot-tabs' of https://github.com/kapsh/fio * 'gnuplot-tabs' of https://github.com/kapsh/fio: fio2gnuplot: fix TabErrors when running with Python 3 --- diff --git a/io_u.c b/io_u.c index 910b7deb..80df2854 100644 --- a/io_u.c +++ b/io_u.c @@ -557,10 +557,10 @@ static unsigned long long get_next_buflen(struct thread_data *td, struct io_u *i for (i = 0; i < td->o.bssplit_nr[ddir]; i++) { struct bssplit *bsp = &td->o.bssplit[ddir][i]; + if (!bsp->perc) + continue; buflen = bsp->bs; perc += bsp->perc; - if (!perc) - break; if ((r / perc <= frand_max / 100ULL) && io_u_fits(td, io_u, buflen)) break;