diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2015-03-19 03:06:03 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2015-03-19 03:06:03 +0000 |
commit | eca0ca234086278d7bb1f4e47283bacc60245e20 (patch) | |
tree | b02f8c0c0b3f7c05d154754773817d09b4feb6f8 /sysutils/pftop | |
parent | 16f4e768bd6b222a2b1da9d03dfce4ece9a294a4 (diff) | |
download | ports-eca0ca234086278d7bb1f4e47283bacc60245e20.tar.gz ports-eca0ca234086278d7bb1f4e47283bacc60245e20.zip |
Notes
Diffstat (limited to 'sysutils/pftop')
-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 |