Stable version of update but lots of stuff to fix

This commit is contained in:
vivek-shankar 2017-01-27 12:21:09 -05:00
parent 28a31e54eb
commit 70f2f98419
4 changed files with 3 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,5 @@
updated="update_ack"
update_no=0
function init(){
barrier = stigmergy.create(101)
barrier.put(id,1)
@ -18,6 +18,7 @@ barrier_val = barrier.size()
neighbors.listen(updated,
function(vid, value, rid) {
print(" got from",vid," " )
if(value==update_no) barrier_val=ROBOTS
}
)

View File

@ -7,7 +7,7 @@ include "/home/ubuntu/buzz/src/include/vec2.bzz"
# This should be here for the updater to work, changing position of code will crash the updater
####################################################################################################
updated="update_ack"
update_no=0
function updated_neigh(){
neighbors.broadcast(updated, update_no)
}