RE: [PATCH v4 3/6] latencystats: do not use floating point

2024-04-20 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Saturday, 20 April 2024 00.45 > > On Fri, 19 Apr 2024 20:49:56 +0200 > Morten Brørup wrote: > > > > - /* > > > - * The average latency is measured using exponential moving > > > - * average, i.e. usin

Re: [PATCH v4 3/6] latencystats: do not use floating point

2024-04-19 Thread Stephen Hemminger
On Fri, 19 Apr 2024 20:49:56 +0200 Morten Brørup wrote: > > - /* > > -* The average latency is measured using exponential moving > > -* average, i.e. using EWMA > > -* https://en.wikipedia.org/wiki/Moving_average > > -*/ > > - gl

RE: [PATCH v4 3/6] latencystats: do not use floating point

2024-04-19 Thread Morten Brørup
> + if (unlikely(first_sample)) { > + first_sample = false; > + > glob_stats->min_latency = latency; > - else if (latency > glob_stats->max_latency) > glob_stats->max_latency = latency; > - /* > -