Browse Source

Test

etomic
jl777 7 years ago
parent
commit
7ba7a49601
  1. 2
      iguana/exchanges/LP_commands.c
  2. 6
      iguana/exchanges/LP_nativeDEX.c

2
iguana/exchanges/LP_commands.c

@ -36,7 +36,7 @@ char *stats_JSON(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,char *r
{
char *method,*userpass,*base,*rel,*coin,*retstr = 0; int32_t changed,flag = 0; cJSON *retjson,*reqjson = 0; struct iguana_info *ptr;
method = jstr(argjson,"method");
//printf("stats_JSON %s\n",method);
printf("stats_JSON %s\n",method);
/*if ( (ipaddr= jstr(argjson,"ipaddr")) != 0 && (argport= juint(argjson,"port")) != 0 && (method == 0 || strcmp(method,"electrum") != 0) )
{
if ( strcmp(ipaddr,"127.0.0.1") != 0 && argport >= 1000 )

6
iguana/exchanges/LP_nativeDEX.c

@ -1216,7 +1216,7 @@ int32_t zeroval() { return(0); }
void *LP_alloc(uint64_t len)
{
return(calloc(1,len));
//return(calloc(1,len));
LP_cjson_allocated += len;
LP_cjson_total += len;
LP_cjson_count++;
@ -1235,9 +1235,9 @@ return(calloc(1,len));
void LP_free(void *ptr)
{
static uint32_t lasttime,unknown; static int64_t lasttotal;
free(ptr); return;
//free(ptr); return;
uint32_t now; char str[65]; int32_t n,lagging; uint64_t total = 0; struct LP_memory_list *mp,*tmp;
if ( (now= (uint32_t)time(NULL)) > lasttime+6 )
if ( (now= (uint32_t)time(NULL)) > lasttime+1 )
{
n = lagging = 0;
DL_FOREACH_SAFE(LP_memory_list,mp,tmp)

Loading…
Cancel
Save