From: Leslie Monis Date: Wed, 27 Mar 2019 15:36:05 +0000 (+0530) Subject: tc: pie: change maximum integer value of tc_pie_xstats->prob X-Git-Tag: v5.4.0~131^2~6 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=492ec9558b304618389fd536f36e86062287f67f;p=mirror_iproute2.git tc: pie: change maximum integer value of tc_pie_xstats->prob tc_pie_xstats->prob has a maximum value of (2^64 - 1). Signed-off-by: Leslie Monis Signed-off-by: Stephen Hemminger --- diff --git a/tc/q_pie.c b/tc/q_pie.c index f7924ef5..236ea31b 100644 --- a/tc/q_pie.c +++ b/tc/q_pie.c @@ -198,7 +198,7 @@ static int pie_print_xstats(struct qdisc_util *qu, FILE *f, st = RTA_DATA(xstats); /*prob is returned as a fracion of maximum integer value */ fprintf(f, "prob %f delay %uus avg_dq_rate %u\n", - (double)st->prob / (double)0xffffffff, st->delay, + (double)st->prob / UINT64_MAX, st->delay, st->avg_dq_rate); fprintf(f, "pkts_in %u overlimit %u dropped %u maxq %u ecn_mark %u\n", st->packets_in, st->overlimit, st->dropped, st->maxq,