mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
cli: Only print elapsed time on OUTPUT_STANDARD
This commit is contained in:
@@ -1344,7 +1344,9 @@ static void repl(void) {
|
||||
}
|
||||
|
||||
elapsed = mstime()-start_time;
|
||||
if (elapsed >= 500) {
|
||||
if (elapsed >= 500 &&
|
||||
config.output == OUTPUT_STANDARD)
|
||||
{
|
||||
printf("(%.2fs)\n",(double)elapsed/1000);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user