Revision 4bf6e70f
Added by Luiz Souza over 9 years ago
src/etc/inc/shaper.inc | ||
---|---|---|
453 | 453 |
if ($data['bandwidth'] < 0) { |
454 | 454 |
$input_errors[] = gettext("Bandwidth cannot be negative."); |
455 | 455 |
} |
456 |
$sum = $this->GetTotalBw(); |
|
457 |
if ($sum > $data['bandwidth'] * get_bandwidthtype_scale($data['bandwidthtype'])) |
|
458 |
$input_errors[] = "The sum of child bandwidth is higher than parent."; |
|
456 |
// This is wrong. Disabled until a proper fix is committed. |
|
457 |
//$sum = $this->GetTotalBw(); |
|
458 |
//if ($sum > $data['bandwidth'] * get_bandwidthtype_scale($data['bandwidthtype'])) |
|
459 |
// $input_errors[] = "The sum of child bandwidth is higher than parent."; |
|
459 | 460 |
if ($data['qlimit'] && (!is_numeric($data['qlimit']))) { |
460 | 461 |
$input_errors[] = gettext("Qlimit must be an integer."); |
461 | 462 |
} |
... | ... | |
1226 | 1227 |
if ($data['bandwidth'] < 0) { |
1227 | 1228 |
$input_errors[] = gettext("Bandwidth cannot be negative."); |
1228 | 1229 |
} |
1229 |
$root = $this->GetRoot(); |
|
1230 |
$sum = $root->GetTotalBw(); |
|
1231 |
if ($sum > $root->GetBandwidth() * get_bandwidthtype_scale($root->GetBwscale())) |
|
1232 |
$input_errors[] = "The sum of child bandwidth is higher than parent."; |
|
1230 |
// This is wrong. Disabled until a proper fix is committed. |
|
1231 |
//$root = $this->GetRoot(); |
|
1232 |
//$sum = $root->GetTotalBw(); |
|
1233 |
//if ($sum > $root->GetBandwidth() * get_bandwidthtype_scale($root->GetBwscale())) |
|
1234 |
// $input_errors[] = "The sum of child bandwidth is higher than parent."; |
|
1233 | 1235 |
if ($data['priority'] && (!is_numeric($data['priority']) || |
1234 | 1236 |
($data['priority'] < 1) || ($data['priority'] > 15))) { |
1235 | 1237 |
$input_errors[] = gettext("The priority must be an integer between 1 and 15."); |
Also available in: Unified diff
Disable the check of subqueues bandwidth until it is fixed.
Ticket #5721