On Tue, Mar 9, 2010 at 1:52 PM, Islam Hegazy <[email protected]> wrote: >> Hi All, >> Although I discovered that I was working in a wrong directory 'le' >> instead of '4bitle', the unsatisfied statements claim still hold. >> >> minPkt = BLQ_PKT_WINDOW; >> >> for (i = 0; i < NEIGHBOR_TABLE_SIZE; i++) >> >> { >> >> ne = &NeighborTable[i]; >> >> if (ne->ll_addr == n) >> >> { >> >> if (ne->flags & VALID_ENTRY) >> >> { >> >> ne->flags |= MATURE_ENTRY; >> >> totalPkt = ne->rcvcnt + ne->failcnt; >> >> if (totalPkt < >> minPkt) //STATEMENT 1 >> >> totalPkt = minPkt; >> >> >> >> if (totalPkt == >> 0) //STATEMENT 2 >> >> ne->inquality = (ALPHA * ne->inquality) / >> 10; >> >> else >> >> { >> >> newEst = (250UL * ne->rcvcnt) / totalPkt; >> >> ne->inquality = (ALPHA * ne->inquality + >> (10-ALPHA) * newEst)/10; >> >> } >> >> ne->rcvcnt = 0; >> >> ne->failcnt = 0; >> >> updateETX(ne, computeETX(ne->inquality)); >> >> } >> >> else >> >> dbg("LI", " - entry %i is invalid.\n", >> (int)i); >> >> } >> >> }
You are right - those two if statements seem to be dead code. I will commit the changes after the release. - om_p _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
