t/io_uring: fix silly identical branch error
authorJens Axboe <axboe@kernel.dk>
Tue, 12 Oct 2021 20:09:33 +0000 (14:09 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 12 Oct 2021 20:09:33 +0000 (14:09 -0600)
The previous change inadvertently added the / 1000 to both branches, it
should of course only be done on the first one.

Fixes: dc10c23ab9a7 ("t/io_uring: show IOPS in increments of 1000 IOPS if necessary")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c

index 444f84155c83b24e7722e3be48f6b030488f07d7..6af3b4d3590ee939d5899dc9dfca6f163cd9a850 100644 (file)
@@ -1317,7 +1317,7 @@ int main(int argc, char *argv[])
                if (iops > 100000)
                        printf("IOPS=%luK, ", iops / 1000);
                else
-                       printf("IOPS=%luK, ", iops / 1000);
+                       printf("IOPS=%luK, ", iops);
                if (!do_nop)
                        printf("BW=%luMiB/s, ", bw);
                printf("IOS/call=%ld/%ld, inflight=(%s)\n", rpc, ipc, fdepths);