Changeset 204 for trunk/system/generators/traffic_shaping_routerboard.php
- Timestamp:
- May 1, 2009, 12:13:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/generators/traffic_shaping_routerboard.php
r197 r204 67 67 68 68 echo('Uživatel '.$Member['Name'].': '); 69 $Tariff = $Finance->Tarify[$Member['InternetTariffCurrentMonth']]; 70 $SpeedIn = round($Tariff['min_speed'] / $InDivider); 71 $SpeedOut = round($Tariff['min_speed'] / $OutDivider); 72 $UserMaxSpeedIn = round($Tariff['max_speed'] / $InDivider); 73 $UserMaxSpeedOut = round($Tariff['max_speed'] / $OutDivider); 74 $Quantum = $Tariff['speed_factor'] * 1500; 69 $Tariff = $Finance->Tariffs[$Member['InternetTariffCurrentMonth']]; 70 $SpeedIn = round($Tariff['SpeedMin'] / $InDivider); 71 $SpeedOut = round($Tariff['SpeedMin'] / $OutDivider); 72 $UserMaxSpeedIn = round($Tariff['SpeedMax'] / $InDivider); 73 $UserMaxSpeedOut = round($Tariff['SpeedMax'] / $OutDivider); 75 74 $Commands[] = ' /queue tree add name='.$Member['Name'].'-out limit-at='.$SpeedIn.' max-limit='.$UserMaxSpeedIn.' parent=main-out queue=wireless-default'; 76 75 $Commands[] = ' /queue tree add name='.$Member['Name'].'-in limit-at='.$SpeedOut.' max-limit='.$UserMaxSpeedOut.' parent=main-in queue=wireless-default';
Note:
See TracChangeset
for help on using the changeset viewer.