diff options
Diffstat (limited to 'src/syscheck.c')
-rw-r--r-- | src/syscheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syscheck.c b/src/syscheck.c index 58dc78f1b..5f0b799e4 100644 --- a/src/syscheck.c +++ b/src/syscheck.c @@ -150,7 +150,7 @@ int checkOvercommit(sds *error_msg) { } fclose(fp); - if (atoi(buf)) { + if (strtol(buf, NULL, 10) == 0) { *error_msg = sdsnew( "overcommit_memory is set to 0! Background save may fail under low memory condition. " "To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the " |