diff --git a/include/proto/server.h b/include/proto/server.h index 9cb814470..93f4f81a6 100644 --- a/include/proto/server.h +++ b/include/proto/server.h @@ -75,7 +75,7 @@ static inline unsigned int server_throttle_rate(struct server *sv) if (!sv->uweight) return 100; - return 100U * (px->lbprm.wmult * sv->eweight + px->lbprm.wdiv - 1) / (px->lbprm.wdiv * sv->uweight); + return (100U * px->lbprm.wmult * sv->eweight + px->lbprm.wdiv - 1) / (px->lbprm.wdiv * sv->uweight); } /*