mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
parent
bfe5008b17
commit
a8c2ef7621
@ -1338,9 +1338,10 @@ static void repl(void) {
|
||||
} else {
|
||||
long long start_time = mstime(), elapsed;
|
||||
int repeat, skipargs = 0;
|
||||
char *endptr;
|
||||
|
||||
repeat = atoi(argv[0]);
|
||||
if (argc > 1 && repeat) {
|
||||
repeat = strtol(argv[0], &endptr, 10);
|
||||
if (argc > 1 && *endptr == '\0' && repeat) {
|
||||
skipargs = 1;
|
||||
} else {
|
||||
repeat = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user