From 53b5fa1ea4f821899440637ab632ce0e1687c916 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 13 Oct 2021 06:17:44 -0600 Subject: [PATCH] t/io_uring: don't append 'K' to IOPS if we don't divide by 1000 Impressive two errors in that silly change. Reported-by: Erwan Velu 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 84960ba9..1b729ebf 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -1361,7 +1361,7 @@ int main(int argc, char *argv[]) if (iops > 100000) printf("IOPS=%luK, ", iops / 1000); else - printf("IOPS=%luK, ", iops); + printf("IOPS=%lu, ", iops); if (!do_nop) printf("BW=%luMiB/s, ", bw); printf("IOS/call=%ld/%ld, inflight=(%s)\n", rpc, ipc, fdepths); -- 2.25.1