Browse Source

Test

etomic
jl777 8 years ago
parent
commit
b3af4fff65
  1. 2
      iguana/exchanges/DEXstats.h
  2. 2
      iguana/exchanges/stats.c

2
iguana/exchanges/DEXstats.h

@ -832,7 +832,7 @@ char *stats_prices(char *symbol,char *dest,struct DEXstats_disp *prices,int32_t
timestamp = OS_conv_datenum(pp->firstdatenum+j,0,0,0);
if ( timestamp < lefttimestamp ) // can speed up by calculating offset 0
{
printf("skip (%s) datenums %d %d %d\n",symbol,datenum,pp->firstdatenum,pp->firstdatenum+pp->numdates);
//printf("skip (%s) datenums %d %d %d\n",symbol,datenum,pp->firstdatenum,pp->firstdatenum+pp->numdates);
continue;
}
stats_dispprices(prices,leftdatenum,numdates,&pp->dates[j],dest,timestamp % (3600*24));

2
iguana/exchanges/stats.c

@ -834,7 +834,7 @@ void stats_pricefeed(struct komodo_state *sp,char *symbol,int32_t ht,uint32_t *p
jaddistr(argjson,"KMD");
jaddinum(argjson,1);
jaddistr(argjson,"BTC");
jaddinum(argjson,dstr(pvals[32]) / 1000.);
jaddinum(argjson,dstr(pvals[32]) / 10000.);
stats_priceupdate(datenum,seconds/3600,seconds % 3600,sp->SAVEDTIMESTAMP,sp->SAVEDHEIGHT,0,0,argjson);
free_json(argjson);
}

Loading…
Cancel
Save