[LTP] [PATCH] tst_timer.h: Cosmetic fix

Petr Vorel pvorel@suse.cz
Wed Jul 26 14:36:18 CEST 2017


>  /*
>   * Converts ms to struct timespec
>   */
> -static inline struct timespec tst_ms_to_timespec(long long us)
> +static inline struct timespec tst_ms_to_timespec(long long ms)
>  {
>  	struct timespec ret;

> -	ret.tv_sec = us / 1000;
> -	ret.tv_nsec = (us % 1000) * 1000000;
> +	ret.tv_sec = ms / 1000;
> +	ret.tv_nsec = (ms % 1000) * 1000000;

Oh yes, us was a bit confusing :-).


Kind regards,
Petr


More information about the ltp mailing list