mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
xz: Refactor duplicate code from hardware_memlimit_mtenc_get().
This commit is contained in:
parent
d327743bb5
commit
649d4872ed
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue