Permalink
Browse files

Put duration in parenthesis

  • Loading branch information...
1 parent cfcd5d6 commit 339b9dc2d2e7d319e29581b367a1027365186cc3 @pietern pietern committed Nov 3, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/redis-cli.c
View
@@ -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 */

0 comments on commit 339b9dc

Please sign in to comment.