|
|
@ -306,6 +306,7 @@ int32_t LP_statslog_parsequote(char *method,cJSON *lineobj) |
|
|
|
strcpy(sp->alicegui,"nogui"); |
|
|
|
if ( sp->finished == 0 && sp->expired == 0 ) |
|
|
|
{ |
|
|
|
printf("add RT\n"); |
|
|
|
if ( (pubp= LP_pubkeyadd(sp->Q.srchash)) != 0 ) |
|
|
|
{ |
|
|
|
ptr = calloc(1,sizeof(*ptr)); |
|
|
@ -318,7 +319,7 @@ int32_t LP_statslog_parsequote(char *method,cJSON *lineobj) |
|
|
|
ptr->swap = sp; |
|
|
|
DL_APPEND(pubp->aliceswaps,ptr); |
|
|
|
} |
|
|
|
} |
|
|
|
} else printf("add completed\n"); |
|
|
|
//LP_swapstats_line(numtrades,basevols,relvols,line,sp);
|
|
|
|
//printf("%s\n",line);
|
|
|
|
} else printf("unexpected LP_swapstats_add failure\n"); |
|
|
@ -411,7 +412,10 @@ cJSON *LP_statslog_disp(uint32_t starttime,uint32_t endtime,char *refgui,bits256 |
|
|
|
LP_stats_dispiter(array,sp,starttime,endtime,refbase,refrel,refgui,refpubkey); |
|
|
|
LP_swapscount++; |
|
|
|
} |
|
|
|
printf("RT.%d completed.%d\n",LP_RTcount,LP_swapscount); |
|
|
|
jadd(retjson,"swaps",array); |
|
|
|
jaddnum(retjson,"RTcount",LP_RTcount); |
|
|
|
jaddnum(retjson,"swapscount",LP_swapscount); |
|
|
|
array = cJSON_CreateArray(); |
|
|
|
for (i=0; i<LP_MAXPRICEINFOS; i++) |
|
|
|
{ |
|
|
|