|
@ -436,6 +436,8 @@ cJSON *LP_swapstats_json(struct LP_swapstats *sp) |
|
|
jaddnum(item,"quoteid",sp->Q.R.quoteid); |
|
|
jaddnum(item,"quoteid",sp->Q.R.quoteid); |
|
|
jaddnum(item,"finished",sp->finished); |
|
|
jaddnum(item,"finished",sp->finished); |
|
|
jaddnum(item,"expired",sp->expired); |
|
|
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); |
|
|
jaddnum(item,"ind",sp->methodind); |
|
|
//jaddstr(item,"line",line);
|
|
|
//jaddstr(item,"line",line);
|
|
|
return(item); |
|
|
return(item); |
|
|