chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unit: introduce ConditionFileIsExecutable= and use it where we check for a binary...
[elogind.git]
/
src
/
readahead-common.c
diff --git
a/src/readahead-common.c
b/src/readahead-common.c
index 8a75b2e135263315ff5721802186b1ca6094905b..f0d57b4c6e49c1192dfe50b6fc57014ab893bbd5 100644
(file)
--- a/
src/readahead-common.c
+++ b/
src/readahead-common.c
@@
-154,9
+154,8
@@
bool enough_ram(void) {
assert_se(sysinfo(&si) >= 0);
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) {
}
int open_inotify(void) {