From: Jens Axboe Date: Fri, 2 Dec 2011 07:45:44 +0000 (+0100) Subject: Remove debug/broken assert() in the IOPS logging code X-Git-Tag: fio-2.0~1 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=531a63265f64f259a08dce0c62255107dd50a33c Remove debug/broken assert() in the IOPS logging code Signed-off-by: Jens Axboe --- diff --git a/stat.c b/stat.c index c921f5f4..851cc2c0 100644 --- a/stat.c +++ b/stat.c @@ -1313,10 +1313,8 @@ void add_iops_sample(struct thread_data *td, enum fio_ddir ddir, add_stat_sample(&ts->iops_stat[ddir], iops); - if (td->iops_log) { - assert(iops); + if (td->iops_log) add_log_sample(td, td->iops_log, iops, ddir, 0); - } fio_gettime(&td->iops_sample_time, NULL); td->stat_io_blocks[ddir] = td->this_io_blocks[ddir];