From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id DA81BFBF3 for ; Tue, 20 Dec 2016 18:36:11 +0100 (CET) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP; 20 Dec 2016 09:36:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,379,1477983600"; d="scan'208";a="44697361" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.29]) ([10.237.220.29]) by orsmga005.jf.intel.com with ESMTP; 20 Dec 2016 09:36:09 -0800 To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , stable@dpdk.org References: <2a15ee2b33cf58e8cfbfe8d51d3af32b97595424.1481590851.git.mirq-linux@rere.qmqm.pl> From: Ferruh Yigit Message-ID: <34adc228-483e-b2b6-6a0e-de594b83eb5f@intel.com> Date: Tue, 20 Dec 2016 17:36:09 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <2a15ee2b33cf58e8cfbfe8d51d3af32b97595424.1481590851.git.mirq-linux@rere.qmqm.pl> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH 07/13] pcap: fix timestamps in output pcap file X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 17:36:12 -0000 On 12/13/2016 1:08 AM, Michał Mirosław wrote: > From: Piotr Bartosiewicz > > Signed-off-by: Michał Mirosław > --- > drivers/net/pcap/rte_eth_pcap.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c > index 0162f44..57b0b31 100644 > --- a/drivers/net/pcap/rte_eth_pcap.c > +++ b/drivers/net/pcap/rte_eth_pcap.c > @@ -247,7 +247,7 @@ calculate_timestamp(struct timeval *ts) { > > cycles = rte_get_timer_cycles() - start_cycles; > cur_time.tv_sec = cycles / hz; > - cur_time.tv_usec = (cycles % hz) * 10e6 / hz; > + cur_time.tv_usec = (cycles % hz) * 1e6 / hz; > timeradd(&start_time, &cur_time, ts); > } > >