From 93e7c254aa9e62e06b4d7aed19cd4c602fc99db0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 21 Oct 2017 18:40:57 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 7b170cda9..832d786dd 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -558,14 +558,14 @@ int32_t LP_quotecmp(struct LP_quoteinfo *qp,struct LP_quoteinfo *qp2) int32_t LP_alice_eligible() { - if ( time(NULL) > Alice_expiration ) + if ( Alice_expiration != 0 && time(NULL) > Alice_expiration ) { printf("time expired for Alice_request\n"); memset(&LP_Alicequery,0,sizeof(LP_Alicequery)); LP_Alicemaxprice = 0.; Alice_expiration = 0; - return(1); - } else return(0); + return(0); + } else return(1); } void LP_reserved(void *ctx,char *myipaddr,int32_t mypubsock,struct LP_quoteinfo *qp)