mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
Put duration in parenthesis
This commit is contained in:
parent
cfcd5d6d43
commit
339b9dc2d2
1 changed files with 3 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue