Commit d048f972 authored by cbgbt's avatar cbgbt Committed by antirez
Browse files

cli: Only print elapsed time on OUTPUT_STANDARD

parent b5f22939
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment