From e6eddb7a70992a5d1b6dc3708db9e0dbc8c21762 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 12 Apr 2019 08:17:28 -1100 Subject: [PATCH] -print --- src/komodo_gateway.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index e2981a856..73df3a546 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -2028,7 +2028,7 @@ int32_t get_stockprices(uint32_t now,uint32_t *prices,std::vector s obj = jitem(json,i); if ( (symbol= jstr(obj,(char *)"symbol")) != 0 ) { - timestamp = juint(obj,(char *)"time"); + timestamp = jdouble(obj,(char *)"time"); uprice = jdouble(obj,(char *)"price")*100 + 0.0049; prices[i] = uprice; if ( timestamp > now+60 || timestamp < now-ASSETCHAINS_BLOCKTIME ) @@ -2669,7 +2669,6 @@ void komodo_pricesinit() { if ( komodo_pricename(PRICES[i].symbol,i) == 0 ) break; - fprintf(stderr,"i.%d %s\n",i,PRICES[i].symbol); if ( i == 0 ) strcpy(PRICES[i].symbol,"rawprices"); pricefname = pricesdir / PRICES[i].symbol;