Project

General

Profile

« Previous | Next » 

Revision 5f928f22

Added by Ermal Luçi over 17 years ago

Only calculate a factor for HFSC scheduler.

View differences:

usr/local/www/wizards/traffic_shaper_wizard.inc
734 734
			$tmpcf['red'] = "on";
735 735
			if ($sched == "CBQ") {
736 736
				$tmpcf['borrow'] = "on";
737
				$tmpcf['bandwidth'] = $remainbw * (10 + $factor)/100; /* 10% bandwidth */
737
				$tmpcf['bandwidth'] = $remainbw * (10)/100; /* 10% bandwidth */
738 738
				$tmpcf['bandwidthtype'] = "%";
739 739
			} else if ($sched == "HFSC") {
740 740
				$tmpcf['bandwidth'] = $remainbw * (10 + $factor)/100; /* 10% bandwidth */
......
770 770
				} else {
771 771
					if ($sched == "CBQ") {
772 772
						$tmpcf['borrow'] = "on";
773
						$tmpcf['bandwidth'] = $remainbw * (5 + $factor)/100; /* 5% bandwidth */
773
						$tmpcf['bandwidth'] = $remainbw * (5)/100; /* 5% bandwidth */
774 774
						$tmpcf['bandwidthtype'] = "%";
775 775
					} else if ($sched == "HFSC") {
776 776
						$tmpcf['bandwidth'] = $remainbw * (5 + $factor)/100; /* 5% bandwidth */
......
799 799
					if ($voipbw > 0)
800 800
						$tmpcf['bandwidth'] = $voipbw;
801 801
					else
802
						$tmpcf['bandwidth'] = $remainbw * (25 + $factor)/100; /* 25% bandwidth */
802
						$tmpcf['bandwidth'] = $remainbw * (25)/100; /* 25% bandwidth */
803 803
					$tmpcf['bandwidthtype'] = "%";
804 804
				} else if ($sched == "HFSC") {
805 805
					if ($voipbw > 0) {
......
842 842
				$tmpcf['red'] = "on";
843 843
				if ($sched == "CBQ") {
844 844
					$tmpcf['borrow'] = "on";
845
					$tmpcf['bandwidth'] = $remainbw * (20 + $factor)/100; /* 20% bandwidth */
845
					$tmpcf['bandwidth'] = $remainbw * (20)/100; /* 20% bandwidth */
846 846
					$tmpcf['bandwidthtype'] = "%";
847 847
				} else if ($sched == "HFSC") {
848 848
					$tmpcf['realtime'] = "on";
......
874 874
				$tmpcf['red'] = "on";
875 875
				if ($sched == "CBQ") {
876 876
					$tmpcf['borrow'] = "on";
877
					$tmpcf['bandwidth'] = $remainbw * (10 + $factor)/100; /* 10% bandwidth */
877
					$tmpcf['bandwidth'] = $remainbw * (10)/100; /* 10% bandwidth */
878 878
					$tmpcf['bandwidthtype'] = "%";
879 879
				} else if ($sched == "HFSC") {
880 880
					$tmpcf['realtime'] = "on";
......
905 905
					if ($penalty)
906 906
						$tmpcf['bandwidth'] = $penaltybw;
907 907
					else
908
						$tmpcf['bandwidth'] = $remainbw * (5 + $factor)/100; /* 5% bandwidth */
908
						$tmpcf['bandwidth'] = $remainbw * (5)/100; /* 5% bandwidth */
909 909
					$tmpcf['bandwidthtype'] = "%";
910 910
				} else if ($sched == "HFSC") {
911 911
					if ($penalty)

Also available in: Unified diff