Re: [dpdk-dev] [PATCH v1] lib/bitratestats: fix integer roundoff

2017-04-20 Thread Thomas Monjalon
19/04/2017 15:26, Remy Horton: > In the absence of traffic, it is possible for the bitrate moving average > to get stuck at a non-zero value, due to the calculated delta being less > than what an integer can represent. > > Fixes: 2ad7ba9a6567 ("bitrate: add bitrate statistics library") > > Signed

[dpdk-dev] [PATCH v1] lib/bitratestats: fix integer roundoff

2017-04-19 Thread Remy Horton
In the absence of traffic, it is possible for the bitrate moving average to get stuck at a non-zero value, due to the calculated delta being less than what an integer can represent. Fixes: 2ad7ba9a6567 ("bitrate: add bitrate statistics library") Signed-off-by: Remy Horton --- lib/librte_bitrate