Merge branch 'directory-operation' of https://github.com/friendy-su/fio
[fio.git] / gettime-thread.c
index 953e4e67e36db81e39aae9bb073b332f8bd373ab..86c2e2efdcdcd796bd280951b5f0170ebe5a8db8 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 (nr_segments) {
                fio_gtod_update();
                nop;
        }