Skip to contentSkip to conversation

sch_sfb.c: fix typo in compute_qlen.

PATCH New Juliusz Chroboczek 1 participant 1 message Apr 11, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sch_sfb.c: fix typo in compute_qlen.

Of course, this depends on the SFB patch being applied.

Juliusz

net/sched/sch_sfb.c +1 -1
index b17d35f..f3e1e07 100644
@@ -202,7 +202,7 @@ static void compute_qlen(u16 *qlen_r, u16 *prob_r, struct sfb_sched_data *q)
                for (j = 0; j < NUMBUCKETS; j++) {
                        if (qlen < q->buckets[filter][i][j].qlen)
                                qlen = q->buckets[filter][i][j].qlen;
-                       if (qlen < q->buckets[filter][i][j].pm)
+                       if (prob < q->buckets[filter][i][j].pm)
                                prob = q->buckets[filter][i][j].pm;
                }
        }