diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-19 19:09:55 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-19 19:09:55 +0200 |
commit | 649d4872ed2f55196114a061d45b416fc4353569 (patch) | |
tree | e13684c3bdfb70a2fb9b13189449ac01863332bf /src | |
parent | xz: Add support --threads=+N so that -T+1 gives threaded mode. (diff) | |
download | xz-649d4872ed2f55196114a061d45b416fc4353569.tar.xz |
xz: Refactor duplicate code from hardware_memlimit_mtenc_get().
Diffstat (limited to '')
-rw-r--r-- | src/xz/hardware.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/hardware.c b/src/xz/hardware.c index 97f77f80..ccdc3b9e 100644 --- a/src/xz/hardware.c +++ b/src/xz/hardware.c @@ -190,7 +190,7 @@ hardware_memlimit_get(enum operation_mode mode) extern uint64_t hardware_memlimit_mtenc_get(void) { - return memlimit_compress == 0 && threads_are_automatic + return hardware_memlimit_mtenc_is_default() ? memlimit_mt_default : hardware_memlimit_get(MODE_COMPRESS); } |