Changeset 204 for trunk/system
- Timestamp:
- May 1, 2009, 12:13:50 PM (16 years ago)
- Location:
- trunk/system/generators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/generators/traffic_shaping.php
r197 r204 128 128 $UserClassId = $ClassId; 129 129 $ClassId = $ClassId + 1; 130 $SpeedIn = round($Tarify[$User['inet_tarif_now']][' min_speed'] / $InDivider);131 $SpeedOut = round($Tarify[$User['inet_tarif_now']][' min_speed'] / $OutDivider);132 $UserMaxSpeedIn = round($Tarify[$User['inet_tarif_now']][' max_speed'] / $InDivider);133 $UserMaxSpeedOut = round($Tarify[$User['inet_tarif_now']][' max_speed'] / $OutDivider);130 $SpeedIn = round($Tarify[$User['inet_tarif_now']]['SpeedMin'] / $InDivider); 131 $SpeedOut = round($Tarify[$User['inet_tarif_now']]['SpeedMin'] / $OutDivider); 132 $UserMaxSpeedIn = round($Tarify[$User['inet_tarif_now']]['SpeedMax'] / $InDivider); 133 $UserMaxSpeedOut = round($Tarify[$User['inet_tarif_now']]['SpeedMax'] / $OutDivider); 134 134 $Quantum = $Tarify[$User['inet_tarif_now']]['speed_factor'] * 1500; 135 135 -
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.