summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl_altq.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-04-08 02:04:49 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-04-08 02:04:49 +0000
commit3d89a2ec6c0484b428cda958288952e4bf12fe1f (patch)
tree76e893966522854b655349719f42fd9bf2105aab /sbin/pfctl/pfctl_altq.c
parent961fbf8dbcd62594ad9b833cb60788ea6bb3d4f9 (diff)
Remove a little bit of dead code; minburst is set to 2 earlier, and
cannot be 0. From NetBSD from Coverity CID 577. OK henning@
Diffstat (limited to 'sbin/pfctl/pfctl_altq.c')
-rw-r--r--sbin/pfctl/pfctl_altq.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c
index 3f570c2691e..f6a62a56edb 100644
--- a/sbin/pfctl/pfctl_altq.c
+++ b/sbin/pfctl/pfctl_altq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_altq.c,v 1.87 2006/01/28 18:54:28 henning Exp $ */
+/* $OpenBSD: pfctl_altq.c,v 1.88 2006/04/08 02:04:48 ray Exp $ */
/*
* Copyright (c) 2002
@@ -475,10 +475,7 @@ cbq_compute_idletime(struct pfctl *pf, struct pf_altq *pa)
maxidle = ptime * maxidle;
else
maxidle = ptime * maxidle_s;
- if (minburst)
- offtime = cptime * (1.0 + 1.0/(1.0 - g) * (1.0 - gtom) / gtom);
- else
- offtime = cptime;
+ offtime = cptime * (1.0 + 1.0/(1.0 - g) * (1.0 - gtom) / gtom);
minidle = -((double)opts->maxpktsize * (double)nsPerByte);
/* scale parameters */