Revision c9ba2f8a
Added by Ermal LUÇI over 12 years ago
etc/inc/upgrade_config.inc | ||
---|---|---|
2947 | 2947 |
} |
2948 | 2948 |
} |
2949 | 2949 |
} |
2950 |
|
|
2951 |
function upgrade_090_to_091() { |
|
2952 |
global $config; |
|
2953 |
|
|
2954 |
if (is_array($config['dnshaper']) && is_array($config['dnshaper']['queue'])) { |
|
2955 |
foreach ($config['dnshaper']['queue'] as $idx => $dnqueue) { |
|
2956 |
if (!empty($dnqueue['bandwidth'])) { |
|
2957 |
$bw = array(); |
|
2958 |
$bw['bw'] = $dnqueue['bandwidth']; |
|
2959 |
$bw['bwscale'] = $dnqueue['bandwidthtype']; |
|
2960 |
$bw['bwsched'] = "none"; |
|
2961 |
$config['dnshaper']['queue'][$idx]['bandwidth'] = array(); |
|
2962 |
$config['dnshaper']['queue'][$idx]['bandwidth']['item'] = array(); |
|
2963 |
$config['dnshaper']['queue'][$idx]['bandwidth']['item'][] = $bw; |
|
2964 |
} |
|
2965 |
} |
|
2966 |
} |
|
2967 |
} |
|
2950 | 2968 |
?> |
Also available in: Unified diff
Make limiters have a schedule specified which applie bandwidth limits during that period