Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 2015 03:06:04 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r381590 - head/sysutils/pftop/files
Message-ID:  <201503190306.t2J3647o062230@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503190306.t2J3647o062230>