aboutsummaryrefslogtreecommitdiff
path: root/src/xz
diff options
context:
space:
mode:
Diffstat (limited to 'src/xz')
-rw-r--r--src/xz/hardware.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/xz/hardware.c b/src/xz/hardware.c
index cb094abd..d5f4b9b4 100644
--- a/src/xz/hardware.c
+++ b/src/xz/hardware.c
@@ -68,11 +68,10 @@ hardware_memlimit_set_percentage(uint32_t percentage)
uint64_t mem = tuklib_physmem();
- // If we cannot determine the amount of RAM, assume 32 MiB. Maybe
- // even that is too much on some systems. But on most systems it's
- // far too little, and can be annoying.
+ // If we cannot determine the amount of RAM, use the assumption
+ // defined by the configure script.
if (mem == 0)
- mem = UINT64_C(32) * 1024 * 1024;
+ mem = (uint64_t)(ASSUME_RAM) * 1024 * 1024;
memlimit = percentage * mem / 100;
return;