diff --git a/src/redis-cli.c b/src/redis-cli.c index d080025b6..060f3ef66 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -1798,6 +1798,8 @@ static void usage(int err) { " -r Execute specified command N times.\n" " -i When -r is used, waits seconds per command.\n" " It is possible to specify sub-second times like -i 0.1.\n" +" This interval is also used in --scan and --stat per cycle.\n" +" and in --bigkeys, --memkeys, and --hotkeys per 100 cycles.\n" " -n Database number.\n" " -3 Start session in RESP3 protocol mode.\n" " -x Read last argument from STDIN.\n" @@ -7995,6 +7997,7 @@ static void scanMode(void) { } } freeReplyObject(reply); + if (config.interval) usleep(config.interval); } while(cur != 0); exit(0);