[CRIU] [PATCH] log: Use USEC_PER_SEC instead of 1000000
Radostin Stoyanov
rstoyanov1 at gmail.com
Wed Dec 5 12:59:24 MSK 2018
Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
---
criu/log.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/log.c b/criu/log.c
index 2f5b28a6..a268ab8a 100644
--- a/criu/log.c
+++ b/criu/log.c
@@ -51,7 +51,7 @@ static void timediff(struct timeval *from, struct timeval *to)
to->tv_usec -= from->tv_usec;
else {
to->tv_sec--;
- to->tv_usec += 1000000 - from->tv_usec;
+ to->tv_usec += USEC_PER_SEC - from->tv_usec;
}
}
--
2.19.2
More information about the CRIU
mailing list