From 7fa12b6eede2179d1f538d9120b40dc193dfae27 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 12 Oct 2021 14:09:33 -0600 Subject: [PATCH] t/io_uring: fix silly identical branch error 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 --- t/io_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/io_uring.c b/t/io_uring.c index 444f8415..6af3b4d3 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -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); -- 2.25.1