Hi Xiaohui,

We just had a discussion about these two if statements. They are dead code and 
will be removed from the next release of 4bitle.

Regards
Islam Hegazy



From: [email protected] 
Sent: Thursday, March 11, 2010 1:00 PM
To: [email protected] 
Subject: Tinyos-help Digest, Vol 83, Issue 39


Send Tinyos-help mailing list submissions to
[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

or, via email, send a message with subject or body 'help' to
[email protected]

You can reach the person managing the list at
[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tinyos-help digest..."


Today's Topics:

   1. update "inquality" in 4bitle (Xiaohui Liu)


----------------------------------------------------------------------

Message: 1
Date: Thu, 11 Mar 2010 13:25:42 -0500
From: Xiaohui Liu <[email protected]>
Subject: [Tinyos-help] update "inquality" in 4bitle
To: Tinyos-Help <[email protected]>
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hi everyone,


I was trying to understand the following snippet in 4bitle:

void updateNeighborTableEst(am_addr_t n) {

minPkt = BLQ_PKT_WINDOW;

...



totalPkt = ne->rcvcnt + ne->failcnt;

  if (totalPkt < minPkt) {

totalPkt = minPkt;

}

if (totalPkt == 0) {

ne->inquality = (ALPHA * ne->inquality) / 10;

}
...

updateNeighborTableEst() is only called when at least BLQ_PKT_WINDOW of
packets are received, meaning totalPkt is equal to or larger than
BLQ_PKT_WINDOW. Why is it necessary to compare totalPkt with minPkt and
consider the case totalPkt is zero? Thank you for clarification.
-- 
-Xiaohui Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100311/e33b6346/attachment.html
 

------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

End of Tinyos-help Digest, Vol 83, Issue 39
*******************************************
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to