Skip to content

Commit 2651114

Browse files
committed
Amend concurrency text in help message
1 parent 087e420 commit 2651114

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/Kanzi.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void printHelp(Printer& log, const string& mode, bool showHeader)
157157
log.println(" -j, --jobs=<jobs>", true);
158158
log.println(" Maximum number of jobs the program may start concurrently", true);
159159
#ifdef CONCURRENCY_ENABLED
160-
int cores = max(int(thread::hardware_concurrency()) / 2, 1);
160+
int cores = min(max(int(thread::hardware_concurrency()) / 2, 1), MAX_CONCURRENCY);
161161
stringstream sstr;
162162
sstr << cores;
163163
log.println(" If 0 is provided, use all available cores (maximum is 64).", true);
@@ -168,8 +168,8 @@ void printHelp(Printer& log, const string& mode, bool showHeader)
168168
log.println(" -v, --verbose=<level>", true);
169169
log.println(" 0=silent, 1=default, 2=display details, 3=display configuration,", true);
170170
log.println(" 4=display block size and timings, 5=display extra information", true);
171-
log.println(" Verbosity is reduced to 1 when files are processed concurrently", true);
172-
log.println(" Verbosity is reduced to 0 when the output is 'stdout'\n", true);
171+
log.println(" Verbosity is reduced to 1 when files are processed concurrently.", true);
172+
log.println(" Verbosity is reduced to 0 when the output is 'stdout'.\n", true);
173173

174174
if (mode != "y") {
175175
log.println(" -f, --force", true);

0 commit comments

Comments
 (0)