swarm test

This commit is contained in:
David St-Onge 2017-04-12 19:26:56 -04:00
parent 458099a8a6
commit ea573d888e
1 changed files with 2 additions and 2 deletions

View File

@ -477,9 +477,9 @@ namespace buzz_utility{
fprintf(stderr, "Real Swarm Size: %i\n",SwarmSize); fprintf(stderr, "Real Swarm Size: %i\n",SwarmSize);
/* Check swarm state -- SOMETHING CRASHING HERE!! */ /* Check swarm state -- SOMETHING CRASHING HERE!! */
/* int status = 1; int status = 1;
buzzdict_foreach(VM->swarmmembers, check_swarm_members, &status); buzzdict_foreach(VM->swarmmembers, check_swarm_members, &status);
if(status == 1 && /* if(status == 1 &&
buzzdict_size(VM->swarmmembers) < 9) buzzdict_size(VM->swarmmembers) < 9)
status = 2; status = 2;
buzzvm_pushs(VM, buzzvm_string_register(VM, "swarm_status", 1)); buzzvm_pushs(VM, buzzvm_string_register(VM, "swarm_status", 1));