From: Pieter Noordhuis Date: Wed, 3 Nov 2010 16:07:10 +0000 (+0100) Subject: Put duration in parenthesis X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/339b9dc2d2e7d319e29581b367a1027365186cc3 Put duration in parenthesis --- diff --git a/src/redis-cli.c b/src/redis-cli.c index 4c34dfb1..fec0fce4 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -432,8 +432,9 @@ static void repl() { cliPrintContextErrorAndExit(); } elapsed = mstime()-start_time; - if (elapsed > 500) printf("%.2f seconds\n", - (double)elapsed/1000); + if (elapsed >= 500) { + printf("(%.2fs)\n",(double)elapsed/1000); + } } } /* Free the argument vector */