Browse Source

Test

etomic
jl777 7 years ago
parent
commit
957d873879
  1. 13
      iguana/exchanges/LP_network.c

13
iguana/exchanges/LP_network.c

@ -283,7 +283,7 @@ void gc_loop(void *arg)
flag++; flag++;
} }
portable_mutex_unlock(&LP_gcmutex); portable_mutex_unlock(&LP_gcmutex);
if ( flag != 0 ) if ( 0 && flag != 0 )
printf("gc_loop.%d\n",flag); printf("gc_loop.%d\n",flag);
sleep(1); sleep(1);
} }
@ -293,7 +293,7 @@ void queue_loop(void *arg)
{ {
struct LP_queue *ptr,*tmp; int32_t sentbytes,nonz,flag,duplicate,n=0; struct LP_queue *ptr,*tmp; int32_t sentbytes,nonz,flag,duplicate,n=0;
strcpy(queue_loop_stats.name,"queue_loop"); strcpy(queue_loop_stats.name,"queue_loop");
queue_loop_stats.threshold = 51.; queue_loop_stats.threshold = 100.;
while ( 1 ) while ( 1 )
{ {
LP_millistats_update(&queue_loop_stats); LP_millistats_update(&queue_loop_stats);
@ -360,9 +360,12 @@ void queue_loop(void *arg)
} }
if ( arg == 0 ) if ( arg == 0 )
break; break;
if ( nonz != 0 ) if ( nonz == 0 )
printf("queue_loop nonz.%d n.%d\n",nonz,n); {
else usleep(50000); if ( IAMLP == 0 )
usleep(50000);
else usleep(10000);
}
} }
} }

Loading…
Cancel
Save