cli: Only print elapsed time on OUTPUT_STANDARD

This commit is contained in:
cbgbt 2016-12-01 02:33:01 -08:00 committed by antirez
parent b5f22939c2
commit d048f9721c

View File

@ -1353,7 +1353,9 @@ static void repl(void) {
} }
elapsed = mstime()-start_time; elapsed = mstime()-start_time;
if (elapsed >= 500) { if (elapsed >= 500 &&
config.output == OUTPUT_STANDARD)
{
printf("(%.2fs)\n",(double)elapsed/1000); printf("(%.2fs)\n",(double)elapsed/1000);
} }
} }