Browse Source

Test

etomic
jl777 8 years ago
parent
commit
2286ee9307
  1. 6
      iguana/exchanges/DEXstats.h

6
iguana/exchanges/DEXstats.h

@ -501,13 +501,13 @@ double _output_line(int32_t calclogflag,double ave,double *output,double *buf,in
{
if ( (val= buf[x]) != 0. )
{
if ( calclogflag != 0 )
//if ( calclogflag != 0 )
{
val = log(buf[x]);
if ( ave != 1. )
yval = _calc_pricey(val,ave);
else yval = val;
} else yval = (val / ave) * height / 3;
} //else yval = (val / ave) * height / 3;
printf("(%f -> %f) ",val,yval);
if ( fabs(yval) > .0000000001 )
{
@ -888,7 +888,7 @@ char *stats_prices(char *symbol,char *dest,struct DEXstats_disp *prices,int32_t
sum /= i;
uint32_t val,height = 400,*bitmap = calloc(sizeof(*bitmap),height * numdates*24);
uint8_t red,green,blue,*tmpptr,*bytemap = calloc(sizeof(*bytemap),3 * height * numdates*24);
output_line(0,sum,output,i,0xff00ff,bitmap,numdates*24,height);
output_line(1,sum,output,i,0xff00ff,bitmap,numdates*24,height);
tmpptr = bytemap;
for (j=0; j<height*numdates*24; j++)
{

Loading…
Cancel
Save