Skip to content

Commit a7f8fc5

Browse files
committed
Improve help message
1 parent 4a539a1 commit a7f8fc5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/Kanzi.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,11 @@ 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);
161+
stringstream sstr;
162+
sstr << cores;
160163
log.println(" If 0 is provided, use all available cores (maximum is 64).", true);
161-
log.println(" (default is half of available cores).\n", true);
164+
log.println(" Default is half of available cores (" + sstr.str() + " on this machine).\n", true);
162165
#else
163166
log.println(" (always 1 in this version).\n", true);
164167
#endif

0 commit comments

Comments
 (0)