]> granicus.if.org Git - xz/commitdiff
xz: Print the maximum number of worker threads in xz -vv.
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 1 May 2011 09:15:51 +0000 (12:15 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 1 May 2011 09:15:51 +0000 (12:15 +0300)
src/xz/coder.c

index 4f883af4e96856363dce86b5bf4f5f25fa8bd697..316f56095c0fd9c669f6f6995f37efc6a3e1f626 100644 (file)
@@ -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
                {