mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-08-14 15:10:16 +00:00
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 <lesliemonis@gmail.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
6754e1d978
commit
492ec9558b
@ -198,7 +198,7 @@ static int pie_print_xstats(struct qdisc_util *qu, FILE *f,
|
|||||||
st = RTA_DATA(xstats);
|
st = RTA_DATA(xstats);
|
||||||
/*prob is returned as a fracion of maximum integer value */
|
/*prob is returned as a fracion of maximum integer value */
|
||||||
fprintf(f, "prob %f delay %uus avg_dq_rate %u\n",
|
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);
|
st->avg_dq_rate);
|
||||||
fprintf(f, "pkts_in %u overlimit %u dropped %u maxq %u ecn_mark %u\n",
|
fprintf(f, "pkts_in %u overlimit %u dropped %u maxq %u ecn_mark %u\n",
|
||||||
st->packets_in, st->overlimit, st->dropped, st->maxq,
|
st->packets_in, st->overlimit, st->dropped, st->maxq,
|
||||||
|
Loading…
Reference in New Issue
Block a user