|
@ -906,7 +906,7 @@ void komodo_iteration(char *symbol) |
|
|
void basilisks_loop(void *arg) |
|
|
void basilisks_loop(void *arg) |
|
|
{ |
|
|
{ |
|
|
static uint32_t counter; |
|
|
static uint32_t counter; |
|
|
struct iguana_info *relay; struct supernet_info *myinfo = arg; int32_t iter; double startmilli,endmilli; struct dpow_info *dp; |
|
|
struct iguana_info *relay; struct supernet_info *myinfo = arg; int32_t i,iter; double startmilli,endmilli; struct dpow_info *dp; |
|
|
iter = 0; |
|
|
iter = 0; |
|
|
relay = iguana_coinfind("RELAY"); |
|
|
relay = iguana_coinfind("RELAY"); |
|
|
printf("start basilisk loop\n"); |
|
|
printf("start basilisk loop\n"); |
|
@ -926,8 +926,11 @@ void basilisks_loop(void *arg) |
|
|
iguana_dPoWupdate(myinfo,&myinfo->DPOWS[0]); |
|
|
iguana_dPoWupdate(myinfo,&myinfo->DPOWS[0]); |
|
|
else if ( myinfo->numdpows > 1 ) |
|
|
else if ( myinfo->numdpows > 1 ) |
|
|
{ |
|
|
{ |
|
|
dp = &myinfo->DPOWS[counter % myinfo->numdpows]; |
|
|
for (i=0; i<myinfo->numdpows; i++) |
|
|
iguana_dPoWupdate(myinfo,dp); |
|
|
{ |
|
|
|
|
|
dp = &myinfo->DPOWS[i];//counter % myinfo->numdpows];
|
|
|
|
|
|
iguana_dPoWupdate(myinfo,dp); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
endmilli = startmilli + 200; |
|
|
endmilli = startmilli + 200; |
|
|
} |
|
|
} |
|
|