Browse Source

outitf.c, restrict vector length to 1, the minimum needed

pre-master-46
h_vogt 9 years ago
committed by Holger Vogt
parent
commit
ce9f23f7af
  1. 9
      src/frontend/outitf.c

9
src/frontend/outitf.c

@ -1058,6 +1058,12 @@ plotInit(runDesc *run)
static inline int static inline int
vlength2delta(int l) vlength2delta(int l)
{ {
#ifdef SHARED_MODULE
if (savenone)
/* We need just a vector length of 1 */
return 1;
#endif
if (l < 50000) if (l < 50000)
return 512; return 512;
if (l < 200000) if (l < 200000)
@ -1078,7 +1084,8 @@ plotAddRealValue(dataDesc *desc, double value)
struct dvec *v = desc->vec; struct dvec *v = desc->vec;
#ifdef SHARED_MODULE #ifdef SHARED_MODULE
if(savenone)
if (savenone)
/* always save new data to same location */
v->v_length = 0; v->v_length = 0;
#endif #endif

Loading…
Cancel
Save