tree-wide: use usec_add() and usec_sub_unsigned()

This commit is contained in:
Yu Watanabe
2021-03-05 07:10:08 +09:00
parent e6283cbf48
commit 496db33004
14 changed files with 30 additions and 36 deletions
+2 -3
View File
@@ -1503,10 +1503,9 @@ static int run(int argc, char *argv[]) {
flags = determine_flags();
if (arg_timeout == USEC_INFINITY)
until = usec_add(now(CLOCK_MONOTONIC), arg_timeout);
if (until == USEC_INFINITY)
until = 0;
else
until = now(CLOCK_MONOTONIC) + arg_timeout;
arg_key_size = (arg_key_size > 0 ? arg_key_size : (256 / 8));