summaryrefslogtreecommitdiffstats
path: root/etc/inc/shaper.inc
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:09:41 -0200
commit89cf3dc0b6958322974d40fd1111ef276174053e (patch)
treef8c10ee68f5ffaae798de10662555019073598ef /etc/inc/shaper.inc
parent340ce958d9930a678d60292388636420030ad77c (diff)
downloadpfsense-89cf3dc0b6958322974d40fd1111ef276174053e.zip
pfsense-89cf3dc0b6958322974d40fd1111ef276174053e.tar.gz
Fix logic to find available next number for limiters and queues. It fixes #3998
Diffstat (limited to 'etc/inc/shaper.inc')
-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 80471f5..84c8e24 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -4430,7 +4430,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
@@ -4456,7 +4456,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