From 51cd4518e89acad318f2f5d719dd7fcaf9d2404d Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 8 Jul 2017 11:55:59 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_utxos.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/iguana/exchanges/LP_utxos.c b/iguana/exchanges/LP_utxos.c index cc5abb1d6..e43319bdb 100644 --- a/iguana/exchanges/LP_utxos.c +++ b/iguana/exchanges/LP_utxos.c @@ -553,12 +553,15 @@ struct LP_utxoinfo *LP_utxoadd(int32_t iambob,int32_t mypubsock,char *symbol,bit utxo = 0; } } - if ( utxo->T.sessionid == 0 ) - utxo->T.sessionid = sessionid; - //else if ( profitmargin > SMALLVAL ) - // utxo->S.profitmargin = profitmargin; if ( utxo != 0 ) + { + if ( utxo->T.sessionid == 0 ) + utxo->T.sessionid = sessionid; + //else if ( profitmargin > SMALLVAL ) + // utxo->S.profitmargin = profitmargin; + utxo->T.lasttime = (uint32_t)time(NULL); return(utxo); + } } utxo = calloc(1,sizeof(*utxo)); //utxo->S.profitmargin = profitmargin;