diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-06-28 15:04:54 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-06-28 15:05:23 -0500 |
commit | 3481524ae8a1e3e17c962369249748ed1d60c6ce (patch) | |
tree | e022812288540f89553f75d5e64211c299c3c24f | |
parent | 3ba22abdc9073009ea9d6a2ae67a93ea289dd309 (diff) | |
download | pfsense-3481524ae8a1e3e17c962369249748ed1d60c6ce.zip pfsense-3481524ae8a1e3e17c962369249748ed1d60c6ce.tar.gz |
Clean up limiter text. Remove old commented out bit.
-rw-r--r-- | src/etc/inc/shaper.inc | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/src/etc/inc/shaper.inc b/src/etc/inc/shaper.inc index 317b6ac..17eea12 100644 --- a/src/etc/inc/shaper.inc +++ b/src/etc/inc/shaper.inc @@ -3315,7 +3315,7 @@ class dummynet_class { if ($data['plr'] && (!is_numeric($data['plr']) || ($data['plr'] < 0) || ($data['plr'] > 1))) { - $input_errors[] = gettext("Plr must be a value between 0 and 1."); + $input_errors[] = gettext("Packet Loss Rate must be a value between 0 and 1."); } if ($data['buckets'] && (!is_numeric($data['buckets']) || ($data['buckets'] < 16) || ($data['buckets'] > 65535))) { @@ -3332,12 +3332,12 @@ class dummynet_class { } if (isset($data['maskbits']) && ($data['maskbits'] <> "")) { if ((!is_numeric($data['maskbits'])) || ($data['maskbits'] <= 0) || ($data['maskbits'] > 32)) { - $input_errors[] = gettext("IPV4 bit mask must be blank or numeric value between 1 and 32."); + $input_errors[] = gettext("IPv4 bit mask must be blank or numeric value between 1 and 32."); } } if (isset($data['maskbitsv6']) && ($data['maskbitsv6'] <> "")) { if ((!is_numeric($data['maskbitsv6'])) || ($data['maskbitsv6'] <= 0) || ($data['maskbitsv6'] > 128)) { - $input_errors[] = gettext("IPV6 bit mask must be blank or numeric value between 1 and 128."); + $input_errors[] = gettext("IPv6 bit mask must be blank or numeric value between 1 and 128."); } } } @@ -3879,15 +3879,6 @@ EOD; $bandwidth = $this->GetBandwidth(); - // Delete a row -// if(isset($_GET['delbwrow']) && (count($bandwidth) > 0)) -// unset($bandwidth[$_GET['delbwrow']]); - - // Add a row -// if($_GET['newbwrow']) { -// array_push($bandwidth, array(count($bandwidth) => array('bw' => '', 'burst' => '', 'bwscale' => 'Kb', 'bwsched' => 'none') )); -// } - if (is_array($bandwidth)) { $section->addInput(new Form_StaticText( 'Bandwidth', @@ -3913,14 +3904,14 @@ EOD; null, $mask['bits'], array_combine(range(32, 1, -1), range(32, 1, -1)) - ))->setHelp('IPV4 mask bits' . '<br />' . '255.255.255.255/?'); + ))->setHelp('IPv4 mask bits' . '<br />' . '255.255.255.255/?'); $group->add(new Form_Select( 'maskbitsv6', null, $mask['bitsv6'], array_combine(range(128, 1, -1), range(128, 1, -1)) - ))->setHelp('IPV6 mask bits' . '<br />' . '<span style="font-family:consolas">ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/?</span>'); + ))->setHelp('IPv6 mask bits' . '<br />' . '<span style="font-family:consolas">ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/?</span>'); $section->add($group); @@ -4217,14 +4208,14 @@ class dnqueue_class extends dummynet_class { null, $mask['bits'], array_combine(range(32, 1, -1), range(32, 1, -1)) - ))->setHelp('IPV4 mask bits' . '<br />' . '255.255.255.255/?'); + ))->setHelp('IPv4 mask bits' . '<br />' . '255.255.255.255/?'); $group->add(new Form_Select( 'maskbitsv6', null, $mask['bitsv6'], array_combine(range(128, 1, -1), range(128, 1, -1)) - ))->setHelp('IPV6 mask bits' . '<br />' . '<span style="font-family:consolas">ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/?</span>'); + ))->setHelp('IPv6 mask bits' . '<br />' . '<span style="font-family:consolas">ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/?</span>'); $section->add($group); |