From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v1] lib/bitratestats: fix integer roundoff Date: Fri, 21 Apr 2017 01:09:44 +0200 Message-ID: <3628610.Z5zJ0CXNQv@xps> References: <1492608408-12084-1-git-send-email-remy.horton@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Remy Horton Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 34C2BDE0 for ; Fri, 21 Apr 2017 01:09:46 +0200 (CEST) In-Reply-To: <1492608408-12084-1-git-send-email-remy.horton@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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-off-by: Remy Horton Applied, thanks PS: please not that the title of this patch does not match the title of the fixed patch. Changed to "bitrate: fix integer roundoff"