Browse Source

Test

etomic
jl777 7 years ago
parent
commit
16143707cd
  1. 4
      iguana/exchanges/LP_stats.c

4
iguana/exchanges/LP_stats.c

@ -535,7 +535,7 @@ char *LP_swapstatus_recv(cJSON *argjson)
} }
if ( sp != 0 ) if ( sp != 0 )
{ {
if ( 0 && IAMLP == 0 ) if ( IAMLP == 0 )
printf("swapstatus.(%s)\n",jprint(argjson,0)); printf("swapstatus.(%s)\n",jprint(argjson,0));
sp->lasttime = (uint32_t)time(NULL); sp->lasttime = (uint32_t)time(NULL);
if ( (methodind= jint(argjson,"ind")) > sp->methodind && methodind < sizeof(LP_stats_methods)/sizeof(*LP_stats_methods) ) if ( (methodind= jint(argjson,"ind")) > sp->methodind && methodind < sizeof(LP_stats_methods)/sizeof(*LP_stats_methods) )
@ -589,7 +589,7 @@ char *LP_swapstatus_recv(cJSON *argjson)
char *LP_gettradestatus(uint64_t aliceid,uint32_t requestid,uint32_t quoteid) char *LP_gettradestatus(uint64_t aliceid,uint32_t requestid,uint32_t quoteid)
{ {
struct LP_swapstats *sp; char *swapstr,*statusstr; cJSON *reqjson,*swapjson; bits256 zero; struct LP_swapstats *sp; char *swapstr,*statusstr; cJSON *reqjson,*swapjson; bits256 zero;
//printf("gettradestatus.(%llu)\n",(long long)aliceid); printf("gettradestatus.(%llu)\n",(long long)aliceid);
if ( IAMLP != 0 ) if ( IAMLP != 0 )
{ {
if ( (sp= LP_swapstats_find(aliceid)) != 0 ) if ( (sp= LP_swapstats_find(aliceid)) != 0 )

Loading…
Cancel
Save