diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index 5655c309f..5b7ad7ed1 100644 --- a/iguana/exchanges/LP_prices.c +++ b/iguana/exchanges/LP_prices.c @@ -266,7 +266,7 @@ static int _cmp_orderbook(const void *a,const void *b) retval = 1; else if ( ptr_b < ptr_a ) retval = -1; -/* else + else { #undef ptr_a #undef ptr_b @@ -276,8 +276,8 @@ static int _cmp_orderbook(const void *a,const void *b) return(1); else if ( ptr_b < ptr_a ) return(-1); - }*/ - printf("%.8f vs %.8f -> %d\n",ptr_a,ptr_b,retval); + } + // printf("%.8f vs %.8f -> %d\n",ptr_a,ptr_b,retval); return(retval); #undef ptr_a #undef ptr_b @@ -324,7 +324,7 @@ char *LP_orderbook(char *base,char *rel) retjson = cJSON_CreateObject(); array = cJSON_CreateArray(); if ( numbids > 1 ) - qsort(bids,numbids,sizeof(*bids),_cmp_orderbookrev); + qsort(bids,numbids,sizeof(*bids),_cmp_orderbook); for (i=0; iprice); printf(" -> "); - qsort(asks,numasks,sizeof(*asks),_cmp_orderbook); + qsort(asks,numasks,sizeof(*asks),_cmp_orderbookrev); for (i=0; iprice); printf("sorted asks.%d\n",numasks);