chiark / gitweb /
build-sys: Add i18n support through intltool
[elogind.git] / src / readahead-common.c
index 8a75b2e135263315ff5721802186b1ca6094905b..f0d57b4c6e49c1192dfe50b6fc57014ab893bbd5 100644 (file)
@@ -154,9 +154,8 @@ bool enough_ram(void) {
 
         assert_se(sysinfo(&si) >= 0);
 
-        return si.totalram > 127 * 1024*1024; /* Enable readahead only
-                                               * with at least 128MB
-                                               * memory */
+        /* Enable readahead only with at least 128MB memory */
+        return si.totalram > 127 * 1024*1024 / si.mem_unit;
 }
 
 int open_inotify(void) {