mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
Firewall : Shaper - support Gbit in pipe's
This commit is contained in:
parent
09083b2404
commit
e7e09b52aa
@ -56,6 +56,8 @@ class TrafficShaper extends BaseModel
|
||||
$currentval *= 1000;
|
||||
} elseif ($parentNode->bandwidthMetric == "Mbit") {
|
||||
$currentval *= 1000000;
|
||||
} elseif ($parentNode->bandwidthMetric == "Gbit") {
|
||||
$currentval *= 1000000000;
|
||||
}
|
||||
if ($currentval > $max_bandwith) {
|
||||
$messages->appendMessage(new Message(
|
||||
|
||||
@ -30,6 +30,7 @@
|
||||
<bit>bit/s</bit>
|
||||
<Kbit>kbit/s</Kbit>
|
||||
<Mbit>Mbit/s</Mbit>
|
||||
<Gbit>Gbit/s</Mbit>
|
||||
</OptionValues>
|
||||
<ValidationMessage>Bandwidth metric should be either bit/s, kbit/s or Mbit/s</ValidationMessage>
|
||||
</bandwidthMetric>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user