Browse Source

Test

etomic
jl777 7 years ago
parent
commit
7a4a316fb6
  1. 7
      iguana/exchanges/LP_stats.c

7
iguana/exchanges/LP_stats.c

@ -306,7 +306,6 @@ int32_t LP_statslog_parsequote(char *method,cJSON *lineobj)
strcpy(sp->alicegui,"nogui"); strcpy(sp->alicegui,"nogui");
if ( sp->finished == 0 && sp->expired == 0 ) if ( sp->finished == 0 && sp->expired == 0 )
{ {
printf("add RT\n");
if ( (pubp= LP_pubkeyadd(sp->Q.srchash)) != 0 ) if ( (pubp= LP_pubkeyadd(sp->Q.srchash)) != 0 )
{ {
ptr = calloc(1,sizeof(*ptr)); ptr = calloc(1,sizeof(*ptr));
@ -319,9 +318,7 @@ int32_t LP_statslog_parsequote(char *method,cJSON *lineobj)
ptr->swap = sp; ptr->swap = sp;
DL_APPEND(pubp->aliceswaps,ptr); 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"); } else printf("unexpected LP_swapstats_add failure\n");
} }
if ( sp != 0 ) if ( sp != 0 )
@ -412,7 +409,7 @@ 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_stats_dispiter(array,sp,starttime,endtime,refbase,refrel,refgui,refpubkey);
LP_swapscount++; LP_swapscount++;
} }
printf("RT.%d completed.%d\n",LP_RTcount,LP_swapscount); //printf("RT.%d completed.%d\n",LP_RTcount,LP_swapscount);
jadd(retjson,"swaps",array); jadd(retjson,"swaps",array);
jaddnum(retjson,"RTcount",LP_RTcount); jaddnum(retjson,"RTcount",LP_RTcount);
jaddnum(retjson,"swapscount",LP_swapscount); jaddnum(retjson,"swapscount",LP_swapscount);

Loading…
Cancel
Save