X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=libfio.c;h=14ddc4d03302758d95d08a45a2eb4d740798441b;hb=403bb450a8b48885b05d235ef6bf613561c94bbf;hp=da22456e39b30e71f0d471b8a91c0bb003a6ae42;hpb=dbf285f75b4a447390a94a45b4c6091ac0c9f604;p=fio.git 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);