Browse Source

Test

etomic
jl777 7 years ago
parent
commit
1b363373b7
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 4
      iguana/exchanges/LP_network.c

2
iguana/exchanges/LP_nativeDEX.c

@ -66,7 +66,7 @@ void LP_millistats_update(struct LP_millistats *mp)
mp->millisum += elapsed;
if ( mp->threshold != 0. && elapsed > mp->threshold )
{
if ( IAMLP == 0 )
//if ( IAMLP == 0 )
printf("%32s elapsed %10.2f millis > threshold %10.2f, ave %10.2f millis, count.%u\n",mp->name,elapsed,mp->threshold,mp->millisum/mp->count,mp->count);
}
mp->lastmilli = millis;

4
iguana/exchanges/LP_network.c

@ -298,7 +298,7 @@ void queue_loop(void *arg)
{
LP_millistats_update(&queue_loop_stats);
//printf("LP_Q.%p next.%p prev.%p\n",LP_Q,LP_Q!=0?LP_Q->next:0,LP_Q!=0?LP_Q->prev:0);
n = nonz = 0;
n = nonz = flag = 0;
DL_FOREACH_SAFE(LP_Q,ptr,tmp)
{
n++;
@ -356,7 +356,7 @@ void queue_loop(void *arg)
// printf("LP_Q.[%d]\n",n);
if ( nonz == 0 )
usleep(10000);
else printf("queue_loop nonz.%d flag.%d n.%d\n",nonz,flag,n);
else printf("queue_loop nonz.%d n.%d\n",nonz,n);
}
}

Loading…
Cancel
Save