Commit 13546adc authored by cbgbt's avatar cbgbt Committed by antirez
Browse files

cli: Only print elapsed time on OUTPUT_STANDARD

parent 373facf8
......@@ -1351,7 +1351,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