Commit bdd4c5a8 authored by Radostin Stoyanov's avatar Radostin Stoyanov Committed by Andrei Vagin

log: Use USEC_PER_SEC instead of 1000000

Signed-off-by: 's avatarRadostin Stoyanov <rstoyanov1@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
parent 66ce84e6
...@@ -51,7 +51,7 @@ static void timediff(struct timeval *from, struct timeval *to) ...@@ -51,7 +51,7 @@ static void timediff(struct timeval *from, struct timeval *to)
to->tv_usec -= from->tv_usec; to->tv_usec -= from->tv_usec;
else { else {
to->tv_sec--; to->tv_sec--;
to->tv_usec += 1000000 - from->tv_usec; to->tv_usec += USEC_PER_SEC - from->tv_usec;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment