Wrap thread_data in thread_segment
[fio.git] / gettime-thread.c
index 953e4e67e36db81e39aae9bb073b332f8bd373ab..9b82e537220e703d2c00c7342ce8bfef3223a656 100644 (file)
@@ -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 (threads) {
+       while (segments[0].threads) {
                fio_gtod_update();
                nop;
        }