From 67ef64014785c56a0a5f31622675d8bfed7b82d9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 2 Jul 2016 11:04:13 -0300 Subject: [PATCH] test --- basilisk/basilisk.c | 12 ++++++------ basilisk/basilisk_DEX.c | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 5f4d9cbc9..2188db298 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -794,9 +794,9 @@ double basilisk_request_listprocess(struct supernet_info *myinfo,struct basilisk return(metric); } -double basilisk_process_results(struct supernet_info *myinfo,cJSON *retjson,double hwm) +double basilisk_process_results(struct supernet_info *myinfo,struct basilisk_request *issueR,cJSON *retjson,double hwm) { - cJSON *array,*item; int32_t i,n,m; struct basilisk_request tmpR,R,issueR,refR,list[BASILISK_MAXRELAYS*10]; double metric=0.; + cJSON *array,*item; int32_t i,n,m; struct basilisk_request tmpR,R,refR,list[BASILISK_MAXRELAYS*10]; double metric=0.; if ( (array= jarray(&n,retjson,"result")) != 0 ) { for (i=m=0; i hwm ) - issueR = tmpR, hwm = metric; + *issueR = tmpR, hwm = metric; m = 0; } } @@ -819,7 +819,7 @@ double basilisk_process_results(struct supernet_info *myinfo,cJSON *retjson,doub } if ( m > 0 && m < sizeof(list)/sizeof(*list) ) if ( (metric= basilisk_request_listprocess(myinfo,&tmpR,list,m)) > hwm ) - issueR = tmpR, hwm = metric; + *issueR = tmpR, hwm = metric; } return(hwm); } @@ -843,8 +843,8 @@ void basilisk_requests_poll(struct supernet_info *myinfo) { n = cJSON_GetArraySize(outerarray); for (i=0; irequestid == requestid && rp->quoteid == quoteid ) { + printf("start from accept\n"); retstr = basilisk_start(myinfo,rp,1); break; }