t/io_uring: don't append 'K' to IOPS if we don't divide by 1000
authorJens Axboe <axboe@kernel.dk>
Wed, 13 Oct 2021 12:17:44 +0000 (06:17 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 Oct 2021 12:17:44 +0000 (06:17 -0600)
Impressive two errors in that silly change.

Reported-by: Erwan Velu <erwanaliasr1@gmail.com>
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 84960ba9310270330c2faa5f6059ee49b3940929..1b729ebf95443f0922a327165420f10bb5c93515 100644 (file)
@@ -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);