mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
cli: Only print elapsed time on OUTPUT_STANDARD
This commit is contained in:
parent
6eb0c52d4c
commit
e5db99ad4a
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user