X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=gettime-thread.c;h=86c2e2efdcdcd796bd280951b5f0170ebe5a8db8;hb=855dc4d44e000b68c01b0e33eae3389b49eb7f7f;hp=9b82e537220e703d2c00c7342ce8bfef3223a656;hpb=d41647e6fa08ba1359844db8be57474e7edb05f9;p=fio.git diff --git a/gettime-thread.c b/gettime-thread.c index 9b82e537..86c2e2ef 100644 --- a/gettime-thread.c +++ b/gettime-thread.c @@ -58,7 +58,7 @@ static void *gtod_thread_main(void *data) * but I'm not sure what to use outside of a simple CPU nop to relax * it - we don't want to lose precision. */ - while (segments[0].threads) { + while (nr_segments) { fio_gtod_update(); nop; }