t/io_uring: Fix the parameters calculation for multiple threads scenario
[fio.git] / t / io_uring.c
index 5a80e074f3933b1b0dc60514875e22b18741ee42..a87042f849439f141f83a59571d2c3aa42f58157 100644 (file)
@@ -1348,6 +1348,7 @@ int main(int argc, char *argv[])
                        stats_running = 1;
 
                for (j = 0; j < nthreads; j++) {
                        stats_running = 1;
 
                for (j = 0; j < nthreads; j++) {
+                       s = get_submitter(j);
                        this_done += s->done;
                        this_call += s->calls;
                        this_reap += s->reaps;
                        this_done += s->done;
                        this_call += s->calls;
                        this_reap += s->reaps;