Added hack for letting nodes signal that they are 'done'. The simulator exits when all nodes are done. Fixed random initialization so that it is different for all nodes.
This commit is contained in:
parent
0ed1d401d5
commit
c67ce1c1b0
9 changed files with 89 additions and 21 deletions
|
@ -24,7 +24,7 @@
|
|||
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
|
||||
* OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: display.c,v 1.3 2006/10/06 08:25:30 adamdunkels Exp $
|
||||
* $Id: display.c,v 1.4 2006/10/23 09:01:06 adamdunkels Exp $
|
||||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
|
@ -251,8 +251,8 @@ display_tick(void)
|
|||
} else {
|
||||
e = NULL;
|
||||
}
|
||||
if(d->size > 40) {
|
||||
d->size -= 8;
|
||||
if(d->size > 20) {
|
||||
d->size /= 2;
|
||||
} else {
|
||||
d->size -= 4;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue