summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-11-13 10:09:41 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-11-13 10:10:00 -0200
commit8105ffa61c2d5aba42fa0ceac92ae7f9f80f8b19 (patch)
tree241ad8d9483e7fd2b0b069652f7ed0662082d33a
parentfcfa23da8b29c803a52e74243b8049b997e7f2ee (diff)
downloadpfsense-8105ffa61c2d5aba42fa0ceac92ae7f9f80f8b19.zip
pfsense-8105ffa61c2d5aba42fa0ceac92ae7f9f80f8b19.tar.gz
Fix logic to find available next number for limiters and queues. It fixes #3998
-rw-r--r--etc/inc/shaper.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index f4eed16..9d60577 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -4409,7 +4409,7 @@ function dnqueue_find_nextnumber() {
$found = false;
foreach ($dnused as $dnnum) {
if (($dnnum - $dnnumber) > 1) {
- $dnnumber = $dnnum + 1;
+ $dnnumber = $dnnum - 1;
$found = true;
break;
} else
@@ -4435,7 +4435,7 @@ function dnpipe_find_nextnumber() {
$found = false;
foreach ($dnused as $dnnum) {
if (($dnnum - $dnnumber) > 1) {
- $dnnumber = $dnnum + 1;
+ $dnnumber = $dnnum - 1;
$found = true;
break;
} else
OpenPOWER on IntegriCloud