mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
The get_next_interval_sqrt function has the line: __u64 val = (__u64)CODEL_EXCEED_INTERVAL << 16 / get_sqrt_sh16(cnt); However, the division operator has higher precedence than the shift operator. Therefore, 16 / get_sqrt_sh16(cnt) will always evaluate to zero. Signed-off-by: Frey Alfredsson <freysteinn@freysteinn.com>