[LTP] [PATCH v2 2/4] fzsync: Simplify API with start/end race calls and limit exec time

Richard Palethorpe rpalethorpe@suse.de
Mon Sep 10 13:46:50 CEST 2018


Richard Palethorpe <rpalethorpe@suse.com> writes:

> +static inline void tst_upd_stat(struct tst_fzsync_stat *s,
> +				 float alpha,
> +				 float sample)
>  {
> -	tst_fzsync_time(&pair->b);
> +	s->avg = tst_exp_moving_avg(alpha, sample, s->avg);
> +	s->avg_dev = tst_exp_moving_avg(alpha,
> +					5fabs(s->avg - sample), s->avg_dev);
                                        ^ whoops

-- 
Thank you,
Richard.


More information about the ltp mailing list