projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e1d3f2
)
t/io_uring: switch to GiB/sec if numbers get large
author
Jens Axboe
<axboe@kernel.dk>
Sun, 31 Jul 2022 18:06:12 +0000
(12:06 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Sun, 31 Jul 2022 18:06:12 +0000
(12:06 -0600)
Easier to read if we're above 2GiB/sec in bandwidth.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c
patch
|
blob
|
blame
|
history
diff --git
a/t/io_uring.c
b/t/io_uring.c
index 100359129cf07bc2f040a7d2037965bb33136da9..335a06ed311e283d566f82dd19bde67593155214 100644
(file)
--- a/
t/io_uring.c
+++ b/
t/io_uring.c
@@
-1546,8
+1546,15
@@
int main(int argc, char *argv[])
else
printf("IOPS=%lu, ", iops);
max_iops = max(max_iops, iops);
- if (!do_nop)
- printf("BW=%luMiB/s, ", bw);
+ if (!do_nop) {
+ if (bw > 2000) {
+ double bw_g = (double) bw / 1000.0;
+
+ printf("BW=%.2fGiB/s, ", bw_g);
+ } else {
+ printf("BW=%luMiB/s, ", bw);
+ }
+ }
printf("IOS/call=%ld/%ld, inflight=(%s)\n", rpc, ipc, fdepths);
done = this_done;
calls = this_call;