From 339b9dc2d2e7d319e29581b367a1027365186cc3 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 3 Nov 2010 17:07:10 +0100 Subject: [PATCH] Put duration in parenthesis --- src/redis-cli.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 */ -- 2.45.2