aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2011-05-01 12:15:51 +0300
committerLasse Collin <lasse.collin@tukaani.org>2011-05-01 12:15:51 +0300
commitc29e6630c1450c630c4e7b783bdd76515db9004c (patch)
treeffa84ab02dc20cdd6369d99327f11d1affe066b4 /src
parentBuild: Warn if no supported method to detect the number of CPU cores. (diff)
downloadxz-c29e6630c1450c630c4e7b783bdd76515db9004c.tar.xz
xz: Print the maximum number of worker threads in xz -vv.
Diffstat (limited to 'src')
-rw-r--r--src/xz/coder.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xz/coder.c b/src/xz/coder.c
index 4f883af4..316f5609 100644
--- a/src/xz/coder.c
+++ b/src/xz/coder.c
@@ -199,6 +199,10 @@ coder_set_compression_settings(void)
mt_options.check = check;
memory_usage = lzma_stream_encoder_mt_memusage(
&mt_options);
+ if (memory_usage != UINT64_MAX)
+ message(V_DEBUG, _("Using up to %" PRIu32
+ " threads."),
+ mt_options.threads);
} else
#endif
{