From owner-svn-ports-all@FreeBSD.ORG Thu Mar 19 03:06:04 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 76A3D3C4; Thu, 19 Mar 2015 03:06:04 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 61ABA945; Thu, 19 Mar 2015 03:06:04 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2J364x1062232; Thu, 19 Mar 2015 03:06:04 GMT (envelope-from araujo@FreeBSD.org) Received: (from araujo@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2J3647o062230; Thu, 19 Mar 2015 03:06:04 GMT (envelope-from araujo@FreeBSD.org) Message-Id: <201503190306.t2J3647o062230@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: araujo set sender to araujo@FreeBSD.org using -f From: Marcelo Araujo Date: Thu, 19 Mar 2015 03:06:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r381590 - head/sysutils/pftop/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2015 03:06:04 -0000 Author: araujo Date: Thu Mar 19 03:06:03 2015 New Revision: 381590 URL: https://svnweb.freebsd.org/changeset/ports/381590 QAT: https://qat.redports.org/buildarchive/r381590/ Log: - Fix build on ARM. PR: 198682 Submitted by: garga Modified: head/sysutils/pftop/files/extra-patch-pftop.c Modified: head/sysutils/pftop/files/extra-patch-pftop.c ============================================================================== --- head/sysutils/pftop/files/extra-patch-pftop.c Thu Mar 19 03:05:51 2015 (r381589) +++ head/sysutils/pftop/files/extra-patch-pftop.c Thu Mar 19 03:06:03 2015 (r381590) @@ -321,7 +321,7 @@ $OpenBSD: patch-pftop_c,v 1.12 2009/12/0 - print_fld_rate(FLD_SA, (s->creation > 0) ? - ((double)sz/(double)s->creation) : -1); + print_fld_rate(FLD_SA, (s->creation) ? -+ ((double)sz/PF_TSTAMP((double)s->creation)) : -1); ++ ((double)sz/PF_TSTAMP(s->creation)) : -1); } #else print_fld_size(FLD_PKTS, s->packets); @@ -329,7 +329,7 @@ $OpenBSD: patch-pftop_c,v 1.12 2009/12/0 - print_fld_rate(FLD_SA, (s->creation > 0) ? - ((double)s->bytes/(double)s->creation) : -1); + print_fld_rate(FLD_SA, (s->creation) ? -+ ((double)s->bytes/PF_TSTAMP((double)s->creation)) : -1); ++ ((double)s->bytes/PF_TSTAMP(s->creation)) : -1); #endif #ifdef HAVE_PFSYNC_STATE