Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use builtin % formatter
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
hugovk and AlexWaygood authored Jan 30, 2023
commit 3936f0d9e1d8c240ed38c8083c5f92c2aa460b0b
2 changes: 1 addition & 1 deletion Tools/iobench/iobench.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def print_results(size, n, real, cpu):
out.write(bw.rjust(12) + "\n")
if cpu < 0.90 * real:
out.write(" warning: test above used only "
f"{100.0 * cpu / real}% CPU, "
f"{cpu / real:%} CPU, "
"result may be flawed!\n")

def run_one_test(name, size, open_func, test_func, *args):
Expand Down