summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl_altq.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-01-20 19:07:51 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-01-20 19:07:51 +0000
commitcfd5ef4e3cc9207e4d477e14b5d0dd8fe59e5988 (patch)
tree36b65dde16a11bec5a886eaafb2c3f2e16f848a4 /sbin/pfctl/pfctl_altq.c
parent6c516cec1212d0283ba62fc00266fded5adf7b77 (diff)
unused var; found by dhartmei@ and camield@
Diffstat (limited to 'sbin/pfctl/pfctl_altq.c')
-rw-r--r--sbin/pfctl/pfctl_altq.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c
index dc33f3e2704..aac597f36d8 100644
--- a/sbin/pfctl/pfctl_altq.c
+++ b/sbin/pfctl/pfctl_altq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_altq.c,v 1.33 2003/01/20 19:05:46 camield Exp $ */
+/* $OpenBSD: pfctl_altq.c,v 1.34 2003/01/20 19:07:50 henning Exp $ */
/*
* Copyright (C) 2002
@@ -399,7 +399,7 @@ cbq_compute_idletime(struct pfctl *pf, struct pf_altq *pa)
struct cbq_opts *opts;
double maxidle_s, maxidle, minidle;
double offtime, nsPerByte, ifnsPerByte, ptime, cptime;
- double z, g, f, gton, gtom, maxrate;
+ double z, g, f, gton, gtom;
u_int minburst, maxburst;
opts = &pa->pq_u.cbq_opts;
@@ -414,7 +414,6 @@ cbq_compute_idletime(struct pfctl *pf, struct pf_altq *pa)
nsPerByte = ifnsPerByte / f;
ptime = (double)opts->pktsize * ifnsPerByte;
- maxrate = f * ((double)pa->ifbandwidth / 8.0);
cptime = ptime * (1.0 - f) / f;
if (nsPerByte * (double)opts->maxpktsize > (double)INT_MAX) {