We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1904846 commit 3e92a9eCopy full SHA for 3e92a9e
structure_threader/sanity_checks/sanity.py
@@ -24,10 +24,9 @@ def cpu_checker(asked_threads):
24
try:
25
if int(asked_threads) > os.cpu_count():
26
print("WARNING: Number of specified threads is higher than the "
27
- "available ones. Adjusting number of threads to %s, "
+ "available ones. Adjusting number of threads to {}, "
28
"which is the total number of CPUs (physical and logical) on "
29
- "this machine." %
30
- os.cpu_count())
+ "this machine.".format(os.cpu_count()))
31
threads = os.cpu_count()
32
else:
33
threads = asked_threads
0 commit comments