Browse Source

Test

etomic
jl777 7 years ago
parent
commit
e347719541
  1. 2
      iguana/exchanges/LP_stats.c

2
iguana/exchanges/LP_stats.c

@ -436,6 +436,8 @@ cJSON *LP_swapstats_json(struct LP_swapstats *sp)
jaddnum(item,"quoteid",sp->Q.R.quoteid);
jaddnum(item,"finished",sp->finished);
jaddnum(item,"expired",sp->expired);
if ( sp->finished == 0 && sp->expired == 0 )
jaddnum(item,"expires",sp->Q.timestamp + LP_atomic_locktime(sp->Q.srccoin,sp->Q.destcoin)*2 - time(NULL));
jaddnum(item,"ind",sp->methodind);
//jaddstr(item,"line",line);
return(item);

Loading…
Cancel
Save