From 604577f1329b617d724d6712868d344a5adf5251 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 5 May 2016 10:55:47 -0600 Subject: [PATCH] libfio: clear iops/bw sample times on stats reset Signed-off-by: Jens Axboe --- libfio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libfio.c b/libfio.c index c626d15c..b17f1484 100644 --- a/libfio.c +++ b/libfio.c @@ -146,6 +146,8 @@ void reset_all_stats(struct thread_data *td) fio_gettime(&tv, NULL); memcpy(&td->epoch, &tv, sizeof(tv)); memcpy(&td->start, &tv, sizeof(tv)); + memcpy(&td->iops_sample_time, &tv, sizeof(tv)); + memcpy(&td->bw_sample_time, &tv, sizeof(tv)); lat_target_reset(td); clear_rusage_stat(td); -- 2.25.1