From 184d8512bd376caa56e3daeffe4f8eb813277203 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 23 Nov 2017 15:32:00 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_stats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_stats.c b/iguana/exchanges/LP_stats.c index b7d9323ee..9dcc9e113 100644 --- a/iguana/exchanges/LP_stats.c +++ b/iguana/exchanges/LP_stats.c @@ -368,10 +368,11 @@ char *LP_swapstatus_recv(cJSON *argjson) sp->lasttime = (uint32_t)time(NULL); if ( (methodind= jint(argjson,"ind")) > sp->methodind && methodind < sizeof(LP_stats_methods)/sizeof(*LP_stats_methods) ) { + if ( sp->finished == 0 && sp->expired == 0 ) + printf("SWAPSTATUS updated %llu %s %u %u\n",(long long)sp->aliceid,LP_stats_methods[sp->methodind],juint(argjson,"finished"),juint(argjson,"expired")); sp->methodind = methodind; sp->finished = juint(argjson,"finished"); sp->expired = juint(argjson,"expired"); - printf("SWAPSTATUS updated %llu %s %u %u\n",(long long)sp->aliceid,LP_stats_methods[sp->methodind],sp->finished,sp->expired); } } return(clonestr("{\"result\":\"success\"}"));