We return 'false' for that case, but it's not really false. Fixes
a sigbus error on sparc, without logging.
Signed-off-by: Jens Axboe <axboe@fb.com>
next = min(td->o.iops_avg_time, td->o.bw_avg_time);
continue;
}
next = min(td->o.iops_avg_time, td->o.bw_avg_time);
continue;
}
- if (!per_unit_log(td->bw_log)) {
+ if (td->bw_log && !per_unit_log(td->bw_log)) {
tmp = add_bw_samples(td, &now);
if (tmp < next)
next = tmp;
}
tmp = add_bw_samples(td, &now);
if (tmp < next)
next = tmp;
}
- if (!per_unit_log(td->iops_log)) {
+ if (td->iops_log && !per_unit_log(td->iops_log)) {
tmp = add_iops_samples(td, &now);
if (tmp < next)
next = tmp;
tmp = add_iops_samples(td, &now);
if (tmp < next)
next = tmp;