tc: fix warning in tc/q_pie.c
Warning was:
q_pie.c:202:22: error: implicit conversion from 'unsigned long' to
'double'
Fixes: 492ec9558b ("tc: pie: change maximum integer value of tc_pie_xstats->prob")
Cc: Leslie Monis <lesliemonis@gmail.com>
Signed-off-by: Brian Vazquez <brianvv@google.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
cad1b0bc5f
commit
908985c670
|
|
@ -217,7 +217,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",
|
||||
(double)st->prob / UINT64_MAX, st->delay);
|
||||
(double)st->prob / (double)UINT64_MAX, st->delay);
|
||||
|
||||
if (st->dq_rate_estimating)
|
||||
fprintf(f, " avg_dq_rate %u\n", st->avg_dq_rate);
|
||||
|
|
|
|||
Loading…
Reference in New Issue