Changeset 479 for trunk/system/generators/queue.php
- Timestamp:
- Feb 5, 2013, 9:45:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/generators/queue.php
r440 r479 38 38 $InInterface = 'ifb0'; 39 39 $InetInterface = $Config['MainRouter']['InetInterface']; 40 $FreeInetSpeed = $Finance->Tariffs[ 7]['SpeedMax'];40 $FreeInetSpeed = $Finance->Tariffs[TARIFF_FREE]['InternetSpeedMax']; 41 41 42 42 $ItemsQueue = array(); … … 62 62 echo('Uživatel '.$Member['Name'].': '); 63 63 $Tariff = $Finance->Tariffs[$Member['InternetTariffCurrentMonth']]; 64 $SpeedIn = round($Tariff[' SpeedMin'] / $InDivider);65 $SpeedOut = round($Tariff[' SpeedMin'] / $OutDivider);66 $UserMaxSpeedIn = round($Tariff[' SpeedMax'] / $InDivider);67 $UserMaxSpeedOut = round($Tariff[' SpeedMax'] / $OutDivider);64 $SpeedIn = round($Tariff['InternetSpeedMin'] / $InDivider); 65 $SpeedOut = round($Tariff['InternetSpeedMin'] / $OutDivider); 66 $UserMaxSpeedIn = round($Tariff['InternetSpeedMax'] / $InDivider); 67 $UserMaxSpeedOut = round($Tariff['InternetSpeedMax'] / $OutDivider); 68 68 $ItemsQueue[] = array('name' => $Member['Name'].'-out', 'limit-at' => $SpeedIn, 'max-limit' => $UserMaxSpeedIn, 'parent' => 'main-out'); 69 69 $ItemsQueue[] = array('name' => $Member['Name'].'-in', 'limit-at' => $SpeedOut, 'max-limit' => $UserMaxSpeedOut, 'parent' => 'main-in');
Note:
See TracChangeset
for help on using the changeset viewer.