From 005d96d4d23a8424a991044ab4a200eae890c97d Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 31 May 2017 11:29:34 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_rpc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index a3131ac93..f912440aa 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -144,9 +144,9 @@ int32_t LP_importaddress(char *symbol,char *address) return(1); } -uint64_t LP_getestimatedrate(char *symbol) +double LP_getestimatedrate(char *symbol) { - char buf[512],*retstr; uint64_t rate = 200; struct iguana_info *coin = LP_coinfind(symbol); + char buf[512],*retstr; double rate = 200; struct iguana_info *coin = LP_coinfind(symbol); if ( coin != 0 ) { sprintf(buf,"[%d]",3); @@ -155,7 +155,7 @@ uint64_t LP_getestimatedrate(char *symbol) if ( retstr[0] != '-' ) { rate = atof(retstr) / 1024.; - printf("estimated rate %s -> %llu\n",retstr,(long long)rate); + printf("estimated rate %s -> %.8f\n",retstr,rate); } free(retstr); }