X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=libfio.c;h=14ddc4d03302758d95d08a45a2eb4d740798441b;hp=da22456e39b30e71f0d471b8a91c0bb003a6ae42;hb=658f35259b6cc3f0333a8af593dfc3189bcd4eaf;hpb=af13d1e88158d3e37940648be139d7a46fe00431 diff --git a/libfio.c b/libfio.c index da22456e..14ddc4d0 100644 --- a/libfio.c +++ b/libfio.c @@ -144,10 +144,10 @@ void reset_all_stats(struct thread_data *td) } set_epoch_time(td, td->o.log_unix_epoch); - memcpy(&td->start, &td->epoch, sizeof(struct timeval)); - memcpy(&td->iops_sample_time, &td->epoch, sizeof(struct timeval)); - memcpy(&td->bw_sample_time, &td->epoch, sizeof(struct timeval)); - memcpy(&td->ss.prev_time, &td->epoch, sizeof(struct timeval)); + memcpy(&td->start, &td->epoch, sizeof(td->epoch)); + memcpy(&td->iops_sample_time, &td->epoch, sizeof(td->epoch)); + memcpy(&td->bw_sample_time, &td->epoch, sizeof(td->epoch)); + memcpy(&td->ss.prev_time, &td->epoch, sizeof(td->epoch)); lat_target_reset(td); clear_rusage_stat(td);