cli: Only print elapsed time on OUTPUT_STANDARD

This commit is contained in:
cbgbt
2017-06-20 16:54:44 +02:00
committed by antirez
parent b5f22939c2
commit d048f9721c
+3 -1
View File
@@ -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);
}
}