X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/b333e2399778e624174e00d123c2cb3785333e3d..c66bf1fa32655ccf3f39b4cd72953459576463f5:/src/config.c diff --git a/src/config.c b/src/config.c index 73fd10e4..f3e5b169 100644 --- a/src/config.c +++ b/src/config.c @@ -234,7 +234,7 @@ void loadServerConfig(char *filename) { } else if (!strcasecmp(argv[0],"auto-aof-rewrite-percentage") && argc == 2) { - server.auto_aofrewrite_perc = atoi(argv[2]); + server.auto_aofrewrite_perc = atoi(argv[1]); if (server.auto_aofrewrite_perc < 0) { err = "Invalid negative percentage for AOF auto rewrite"; goto loaderr;