Revision 17af7b70

View differences:

monl/mon_measure.cpp
49 49
		param_values[i] =  mp->params[i]->dval;
50 50

  
51 51
	if(!(flags & REMOTE))
52
		rb = new ResultBuffer((int)param_values[P_WINDOW_SIZE], mp->name.c_str(), ptrDispatcher->mm->peer_name, this);
52
		rb = new ResultBuffer((int)ceil(param_values[P_WINDOW_SIZE] / tx_every), mp->name.c_str(), ptrDispatcher->mm->peer_name, this);
53 53
	else
54 54
		rb = NULL;
55 55
};
monl/mon_measure.h
93 93

  
94 94
	int paramChangeDefault(MonParameterType ph, MonParameterValue p) {
95 95
		if(ph == P_WINDOW_SIZE && rb != NULL)
96
			return rb->resizeBuffer((int)p);
96
			return rb->resizeBuffer((int)ceil(p/tx_every));
97 97
		if(ph == P_INIT_NAN_ZERO && rb != NULL)
98 98
			return rb->init();
99 99
		if(ph == P_DEBUG_FILE) {

Also available in: Unified diff