X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=iolog.c;h=45a95aa410e3fc11c4a8c6c6f6f8b2cca69dba4a;hb=8b6a404cdd2c40715885e562416c3db039912773;hp=01b82e8dc16b47cab2feef017d7bd60e6b7d49ef;hpb=b2fcbe01bdac01bc5d7f8ddea94f264b9f8c2003;p=fio.git diff --git a/iolog.c b/iolog.c index 01b82e8d..45a95aa4 100644 --- a/iolog.c +++ b/iolog.c @@ -65,7 +65,7 @@ static void iolog_delay(struct thread_data *td, unsigned long delay) { uint64_t usec = utime_since_now(&td->last_issue); uint64_t this_delay; - struct timeval tv; + struct timespec ts; if (delay < td->time_offset) { td->time_offset = 0; @@ -78,7 +78,7 @@ static void iolog_delay(struct thread_data *td, unsigned long delay) delay -= usec; - fio_gettime(&tv, NULL); + fio_gettime(&ts, NULL); while (delay && !td->terminate) { this_delay = delay; if (this_delay > 500000) @@ -88,7 +88,7 @@ static void iolog_delay(struct thread_data *td, unsigned long delay) delay -= this_delay; } - usec = utime_since_now(&tv); + usec = utime_since_now(&ts); if (usec > delay) td->time_offset = usec - delay; else