summaryrefslogtreecommitdiffstats
path: root/etc/inc/shaper.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-06-19 08:42:15 +0000
committerErmal <eri@pfsense.org>2013-06-19 08:42:15 +0000
commit6870b5cebe6e962e7f02b83a7aa932d62a2ecf37 (patch)
treef820177538565e2101f824c93be344fe4388d952 /etc/inc/shaper.inc
parentd5e4f7c947b3c4143eeabd78a5093e17b2805521 (diff)
downloadpfsense-6870b5cebe6e962e7f02b83a7aa932d62a2ecf37.zip
pfsense-6870b5cebe6e962e7f02b83a7aa932d62a2ecf37.tar.gz
Correct the comments describing the error with correct values
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r--etc/inc/shaper.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index d3e540a..078652b 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -2890,10 +2890,10 @@ class dummynet_class {
shaper_do_input_validation($data, $reqdfields, $reqdfieldsn, $input_errors);
if ($data['plr'] && ((!is_numeric($data['plr'])) ||
- ($data['plr'] <= 0 && $data['plr'] > 1)))
- $input_errors[] = gettext("Plr must be an integer between 1 and 100.");
+ ($data['plr'] < 0 && $data['plr'] > 1)))
+ $input_errors[] = gettext("Plr must be a value between 0 and 1.");
if (($data['buckets'] && (!is_numeric($data['buckets']))) ||
- ($data['buckets'] < 1 && $data['buckets'] > 100))
+ ($data['buckets'] < 16 && $data['buckets'] > 65535))
$input_errors[] = gettext("Buckets must be an integer between 16 and 65535.");
if ($data['qlimit'] && (!is_numeric($data['qlimit'])))
$input_errors[] = gettext("Queue limit must be an integer");
OpenPOWER on IntegriCloud