Browse Source

Limit delayed match error prints

etomic
jl777 7 years ago
parent
commit
389278f83f
  1. 4
      iguana/exchanges/LP_stats.c

4
iguana/exchanges/LP_stats.c

@ -455,6 +455,7 @@ int32_t LP_statslog_parsequote(char *method,cJSON *lineobj)
{ {
HASH_ITER(hh,LP_swapstats,sp,tmp) HASH_ITER(hh,LP_swapstats,sp,tmp)
{ {
static uint32_t counter;
if ( sp->Q.R.requestid == requestid && sp->Q.R.quoteid == quoteid ) if ( sp->Q.R.requestid == requestid && sp->Q.R.quoteid == quoteid )
{ {
sp->methodind = methodind; sp->methodind = methodind;
@ -463,7 +464,8 @@ int32_t LP_statslog_parsequote(char *method,cJSON *lineobj)
flag = 1; flag = 1;
break; break;
} }
printf("error after delayed match\n"); if ( counter++ < 10 )
printf("error after delayed match\n");
} }
} }
} }

Loading…
Cancel
Save