From 2a3799242b07d3c977b34355e7e6d3a1cf2642ba Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 8 May 2017 20:16:46 +0300 Subject: [PATCH] Test --- iguana/exchanges/DEXstats.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/DEXstats.h b/iguana/exchanges/DEXstats.h index 42205c342..cc0c7b12f 100644 --- a/iguana/exchanges/DEXstats.h +++ b/iguana/exchanges/DEXstats.h @@ -26,7 +26,7 @@ struct stats_spline { char name[64]; int32_t splineid,lasti,basenum,num,firstx,d #define _extrapolate_spline32(spline32,gap) ((double)i32tod((spline32)[0]) + ((gap) * ((double)i32tod(.001*.001*(spline32)[1]) + ((gap) * ((double)i32tod(.001*.001*.001*.001*(spline32)[2]) + ((gap) * (double)i32tod(.001*.001*.001*.001*.001*.001*(spline32)[3]))))))) uint32_t forex_colors[16]; -double Display_scale = 0.1; +double Display_scale = 0.25; struct DEXstats_disp { double pricesum,volumesum; }; @@ -413,7 +413,7 @@ void disp_yval(register int32_t color,register float yval,register uint32_t *bit return; //y = conv_yval_to_y(yval,height/Display_scale) * Display_scale; y = conv_yval_to_y(yval * Display_scale,height); - //if ( 1 && is_primary_color(color) != 0 ) + if ( 1 && is_primary_color(color) != 0 ) { bitmap[y*rowwidth + x] = color; printf("(%d, %d) <- %x, ",x,y,color); @@ -902,7 +902,7 @@ char *stats_prices(char *symbol,char *dest,struct DEXstats_disp *prices,int32_t *tmpptr++ = blue; } sprintf(fname,"%s/bitmaps/%s_%s.jpg",STATS_DESTDIR,symbol,dest), OS_portable_path(fname); - gen_jpegfile(fname,1,bytemap,numdates*24,height); + gen_jpegfile(fname,100,bytemap,numdates*24,height); free(bitmap), free(bytemap); jaddstr(retjson,"bitmap",fname); jadd(retjson,"hourly",array);