aboutsummaryrefslogtreecommitdiff
path: root/src/xz/args.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2011-04-11 22:06:03 +0300
committerLasse Collin <lasse.collin@tukaani.org>2011-04-11 22:06:03 +0300
commit24e0406c0fb7494d2037dec033686faf1bf67068 (patch)
treed6ca1f7ccc30629c412cb100338bb6beec0b4862 /src/xz/args.c
parentliblzma: Add lzma_stream_encoder_mt() for threaded compression. (diff)
downloadxz-24e0406c0fb7494d2037dec033686faf1bf67068.tar.xz
xz: Add support for threaded compression.
Diffstat (limited to '')
-rw-r--r--src/xz/args.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xz/args.c b/src/xz/args.c
index 17ac0609..dea93c5f 100644
--- a/src/xz/args.c
+++ b/src/xz/args.c
@@ -179,8 +179,9 @@ parse_real(args_info *args, int argc, char **argv)
break;
case 'T':
+ // The max is from src/liblzma/common/common.h.
hardware_threads_set(str_to_uint64("threads",
- optarg, 0, LZMA_THREADS_MAX));
+ optarg, 0, 16384));
break;
// --version