mirror of
https://github.com/fluencelabs/redis
synced 2025-05-12 02:37:11 +00:00
cli: Only print elapsed time on OUTPUT_STANDARD
This commit is contained in:
parent
b5f22939c2
commit
d048f9721c
@ -1353,7 +1353,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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user