diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/dccp/ccids/lib/tfrc_equation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dccp/ccids/lib/tfrc_equation.c b/net/dccp/ccids/lib/tfrc_equation.c index 57665e979308..78bdf3489162 100644 --- a/net/dccp/ccids/lib/tfrc_equation.c +++ b/net/dccp/ccids/lib/tfrc_equation.c | |||
@@ -667,9 +667,9 @@ u32 tfrc_calc_x_reverse_lookup(u32 fvalue) | |||
667 | ctr++; | 667 | ctr++; |
668 | 668 | ||
669 | if (small) | 669 | if (small) |
670 | return TFRC_CALC_X_SPLIT * ctr / TFRC_CALC_X_ARRSIZE; | 670 | return (ctr + 1) * TFRC_CALC_X_SPLIT / TFRC_CALC_X_ARRSIZE; |
671 | else | 671 | else |
672 | return 1000000 * ctr / TFRC_CALC_X_ARRSIZE; | 672 | return (ctr + 1) * 1000000 / TFRC_CALC_X_ARRSIZE; |
673 | } | 673 | } |
674 | 674 | ||
675 | EXPORT_SYMBOL_GPL(tfrc_calc_x_reverse_lookup); | 675 | EXPORT_SYMBOL_GPL(tfrc_calc_x_reverse_lookup); |