Project

General

Profile

« Previous | Next » 

Revision f1a17b1a

Added by Jim Pingle about 12 years ago

Only add burst if a burst is defined

View differences:

etc/inc/shaper.inc
3165 3165
							if ($bw['bwsched'] == $schedule['name']) {
3166 3166
								if (filter_get_time_based_rule_status($schedule)) {
3167 3167
									$pfq_rule .= " bw ".trim($bw['bw']).$bw['bwscale'];
3168
									$pfq_rule .= " burst ".trim($bw['burst']).$bw['bwscale'];
3168
									if ($bw['burst'] > 0)
3169
										$pfq_rule .= " burst ".trim($bw['burst']).$bw['bwscale'];
3169 3170
									$found = true;
3170 3171
									break;
3171 3172
								}
......
3179 3180
					}
3180 3181
				} else {
3181 3182
					$pfq_rule .= " bw ".trim($bw['bw']).$bw['bwscale'];
3182
					$pfq_rule .= " burst ".trim($bw['burst']).$bw['bwscale'];
3183
					if ($bw['burst'] > 0)
3184
						$pfq_rule .= " burst ".trim($bw['burst']).$bw['bwscale'];
3183 3185
					$found = true;
3184 3186
					break;
3185 3187
				}

Also available in: Unified diff