From eb2b06ba62a446767fa1ac1087bf1a0dfc97b604 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 12 Apr 2019 08:14:32 -1100 Subject: [PATCH] +print --- src/komodo_gateway.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 2575df1ac..e2981a856 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -2033,7 +2033,7 @@ int32_t get_stockprices(uint32_t now,uint32_t *prices,std::vector s prices[i] = uprice; if ( timestamp > now+60 || timestamp < now-ASSETCHAINS_BLOCKTIME ) { - fprintf(stderr,"time error.%d\n",timestamp-now); + fprintf(stderr,"time error.%d (%u vs %u)\n",timestamp-now,timestamp,now); retval = -1; } if ( symbols[i] != symbol ) @@ -2392,8 +2392,7 @@ char *komodo_pricename(char *name,int32_t ind) return(0); if ( ind < ASSETCHAINS_STOCKS.size() ) { - fprintf(stderr,"ind.%d vs size.%d\n",ind,(int32_t)ASSETCHAINS_PRICES.size()); - strcpy(name,ASSETCHAINS_PRICES[ind].c_str()); + strcpy(name,ASSETCHAINS_STOCKS[ind].c_str()); strcat(name,"/USD"); return(name); } else ind -= ASSETCHAINS_STOCKS.size();