diff options
author | araujo <araujo@FreeBSD.org> | 2015-03-19 11:06:03 +0800 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2015-03-19 11:06:03 +0800 |
commit | 75f06ef3f377511f328dbc5407fc608647b4e6a7 (patch) | |
tree | b02f8c0c0b3f7c05d154754773817d09b4feb6f8 | |
parent | c646b770716f4203b164158703f3fe00f3f8362b (diff) | |
download | freebsd-ports-gnome-75f06ef3f377511f328dbc5407fc608647b4e6a7.tar.gz freebsd-ports-gnome-75f06ef3f377511f328dbc5407fc608647b4e6a7.tar.zst freebsd-ports-gnome-75f06ef3f377511f328dbc5407fc608647b4e6a7.zip |
- Fix build on ARM.
PR: 198682
Submitted by: garga
-rw-r--r-- | sysutils/pftop/files/extra-patch-pftop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/pftop/files/extra-patch-pftop.c b/sysutils/pftop/files/extra-patch-pftop.c index 151734a7c967..0ce7c8ffd2b4 100644 --- a/sysutils/pftop/files/extra-patch-pftop.c +++ b/sysutils/pftop/files/extra-patch-pftop.c @@ -321,7 +321,7 @@ $OpenBSD: patch-pftop_c,v 1.12 2009/12/02 21:16:10 sthen Exp $ - 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/02 21:16:10 sthen Exp $ - 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 |