diff options
Diffstat (limited to 'init/init.c')
-rw-r--r-- | init/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c index 35f64cf..6bee8f3 100644 --- a/init/init.c +++ b/init/init.c @@ -862,7 +862,7 @@ int init_main(int argc UNUSED_PARAM, char **argv) struct sysinfo info; if (sysinfo(&info) == 0 - && (info.mem_unit ? : 1) * (long long)info.totalram < 1024*1024 + && (info.mem_unit ? info.mem_unit : 1) * (long long)info.totalram < 1024*1024 ) { message(L_CONSOLE, "Low memory, forcing swapon"); /* swapon -a requires /proc typically */ |