Changeset 540 for trunk/Modules/NetworkConfigRouterOS/Generators/Queue.php
- Timestamp:
- May 28, 2013, 10:19:39 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigRouterOS/Generators/Queue.php
r522 r540 60 60 $Member['Name'] = RouterOSIdent($Member['Name'].'-'.$Member['Id'] ); 61 61 62 $ServiceIndex = 1; 62 63 echo('Zákazník '.$Member['Name']."\n"); 63 64 $DbResult4 = $System->Database->query('SELECT `Service`.*, `ServiceCustomerRel`.`Id` AS `RelId` FROM `ServiceCustomerRel` JOIN `Service` ON `Service`.`Id` = `ServiceCustomerRel`.`Service` '. … … 70 71 $UserMaxSpeedIn = round($Service['InternetSpeedMax'] / $InDivider) * 1000; 71 72 $UserMaxSpeedOut = round($Service['InternetSpeedMax'] / $OutDivider) * 1000; 72 $ItemsQueue[] = array('name' => $Member['Name'].'-out', 'limit-at' => $SpeedIn, 'max-limit' => $UserMaxSpeedIn, 'parent' => 'main-out'); 73 $ItemsQueue[] = array('name' => $Member['Name'].'-in', 'limit-at' => $SpeedOut, 'max-limit' => $UserMaxSpeedOut, 'parent' => 'main-in'); 73 if($ServiceIndex == 1) 74 { 75 $ItemsQueue[] = array('name' => $Member['Name'].'-out', 'limit-at' => $SpeedIn, 'max-limit' => $UserMaxSpeedIn, 'parent' => 'main-out'); 76 $ItemsQueue[] = array('name' => $Member['Name'].'-in', 'limit-at' => $SpeedOut, 'max-limit' => $UserMaxSpeedOut, 'parent' => 'main-in'); 77 } 74 78 75 79 $Filter = '(`Used` = 1) AND (`Service` = '.$Service['RelId'].')';
Note:
See TracChangeset
for help on using the changeset viewer.