Browse Source

Test

etomic
jl777 7 years ago
parent
commit
3cf18b518b
  1. 4
      iguana/exchanges/LP_stats.c

4
iguana/exchanges/LP_stats.c

@ -30,7 +30,7 @@ static uint32_t LP_requests,LP_reserveds,LP_connects,LP_connecteds,LP_tradestatu
void LP_tradecommand_log(cJSON *argjson) void LP_tradecommand_log(cJSON *argjson)
{ {
static FILE *logfp; char *jsonstr; static FILE *logfp; char *jsonstr;
portable_mutex_lock(&LP_statslogmutex); //portable_mutex_lock(&LP_statslogmutex);
if ( logfp == 0 ) if ( logfp == 0 )
{ {
if ( (logfp= fopen(LP_STATSLOG_FNAME,"rb+")) != 0 ) if ( (logfp= fopen(LP_STATSLOG_FNAME,"rb+")) != 0 )
@ -44,7 +44,7 @@ void LP_tradecommand_log(cJSON *argjson)
free(jsonstr); free(jsonstr);
fflush(logfp); fflush(logfp);
} }
portable_mutex_unlock(&LP_statslogmutex); //portable_mutex_unlock(&LP_statslogmutex);
} }
void LP_statslog_parseline(cJSON *lineobj) void LP_statslog_parseline(cJSON *lineobj)

Loading…
Cancel
Save