[CRIU] [PATCH] log: Use USEC_PER_SEC instead of 1000000

Andrei Vagin avagin at gmail.com
Sat Dec 8 09:54:06 MSK 2018


Applied, thanks!

On Wed, Dec 05, 2018 at 09:59:24AM +0000, Radostin Stoyanov wrote:
> 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
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list