mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Put duration in parenthesis
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user