X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=backend.c;h=ee395bd0ea5795ca6a8d9da175b73df574bad412;hp=87aec87b37ac6df9b975f274f6200f344bae5dd4;hb=0de5b26f6e177aacac0683306c47e0cbaf58b0b6;hpb=6bb58215842760895071d9f331da4dc2dfc16f30 diff --git a/backend.c b/backend.c index 87aec87b..ee395bd0 100644 --- a/backend.c +++ b/backend.c @@ -346,7 +346,7 @@ static inline int runtime_exceeded(struct thread_data *td, struct timeval *t) return 0; if (!td->o.timeout) return 0; - if (mtime_since(&td->epoch, t) >= td->o.timeout ) + if (utime_since(&td->epoch, t) >= td->o.timeout) return 1; return 0; @@ -1683,8 +1683,8 @@ static void do_usleep(unsigned int usecs) static void run_threads(void) { struct thread_data *td; - unsigned long spent; unsigned int i, todo, nr_running, m_rate, t_rate, nr_started; + uint64_t spent; if (fio_gtod_offload && fio_start_gtod_thread()) return; @@ -1782,7 +1782,7 @@ static void run_threads(void) } if (td->o.start_delay) { - spent = mtime_since_genesis(); + spent = utime_since_genesis(); if (td->o.start_delay > spent) continue;