From d5af6b7c6ae20b5791e8def12b1c159ff38959dc Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 24 Aug 2017 22:50:33 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_scan.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_scan.c b/iguana/exchanges/LP_scan.c index da985c20d..0ec51b907 100644 --- a/iguana/exchanges/LP_scan.c +++ b/iguana/exchanges/LP_scan.c @@ -270,8 +270,8 @@ int sort_balance(void *a,void *b) */ aval = ((struct LP_address *)a)->balance; bval = ((struct LP_address *)b)->balance; - printf("%.8f vs %.8f -> %d\n",dstr(aval),dstr(bval),(int32_t)(bval - aval)); - return((int32_t)(bval - aval)); + //printf("%.8f vs %.8f -> %d\n",dstr(aval),dstr(bval),(int32_t)(bval - aval)); + return((aval == bval) ? 0 : ((aval < bval) ? -1 : 1)); } cJSON *LP_snapshot(struct iguana_info *coin,int32_t height) @@ -342,7 +342,6 @@ cJSON *LP_snapshot(struct iguana_info *coin,int32_t height) } } } - printf("sort\n"); HASH_SORT(coin->addresses,sort_balance); portable_mutex_unlock(&coin->txmutex); printf("%s balance %.8f at height.%d\n",coin->symbol,dstr(balance),height);