This repository was archived by the owner on Oct 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -780,7 +780,7 @@ static struct sk_buff *mptcp_ratio_next_segment(struct sock *meta_sk,
780780 case RIGHT_RATIO_SET :
781781 printk ("RIGHT_RATIO_SET" );
782782 if (meta_tp -> rate_delivered > last_rate + 5 ) {
783- if (meta_tp -> num_segments_flow_one + meta_tp -> ratio_search_step < 100 ) {
783+ if (meta_tp -> num_segments_flow_one + meta_tp -> ratio_search_step <= 100 ) {
784784 meta_tp -> num_segments_flow_one += meta_tp -> ratio_search_step ;
785785 meta_tp -> search_state = SEARCH_RATE ;
786786 } else {
@@ -827,7 +827,7 @@ static struct sk_buff *mptcp_ratio_next_segment(struct sock *meta_sk,
827827 if (meta_tp -> rate_delivered < last_rate ) {
828828 meta_tp -> num_segments_flow_one -= meta_tp -> ratio_search_step ;
829829 meta_tp -> ratio_search_step = abs (meta_tp -> ratio_search_step );
830- if (meta_tp -> num_segments_flow_one + meta_tp -> ratio_search_step /2 < 100 ) {
830+ if (meta_tp -> num_segments_flow_one + meta_tp -> ratio_search_step /2 <= 100 ) {
831831 meta_tp -> num_segments_flow_one += meta_tp -> ratio_search_step /2 ;
832832 meta_tp -> search_state = RIGHT_RATIO_FINE ;
833833 } else {
@@ -836,7 +836,7 @@ static struct sk_buff *mptcp_ratio_next_segment(struct sock *meta_sk,
836836 }
837837 goto reset ;
838838 } else {
839- if (meta_tp -> num_segments_flow_one + meta_tp -> ratio_search_step < 100 && meta_tp -> num_segments_flow_one + meta_tp -> ratio_search_step > 0 )
839+ if (meta_tp -> num_segments_flow_one + meta_tp -> ratio_search_step <= 100 && meta_tp -> num_segments_flow_one + meta_tp -> ratio_search_step > 0 )
840840 meta_tp -> num_segments_flow_one += meta_tp -> ratio_search_step ;
841841 else {
842842 last_rate = 0 ;
You can’t perform that action at this time.
0 commit comments