Revision d2cfc5c9

View differences:

monl/mon_measure.cpp
25 25
#include "mon_event.h"
26 26
#include	"napa_log.h"
27 27

  
28
MonMeasure::MonMeasure(class MeasurePlugin *mp, MeasurementCapabilities mc, class MeasureDispatcher *ptrDisp) {
28
MonMeasure::MonMeasure(class MeasurePlugin *mp, MeasurementCapabilities mc, class MeasureDispatcher *ptrDisp, int txe) {
29 29
	rx_cnt = 0;
30 30
	meas_sum = 0;
31 31
	meas_cnt = 0;
32
	tx_every = 1;
32
	tx_every = txe;
33 33

  
34 34
	measure_plugin = mp;
35 35
	flags = mc;
monl/mon_measure.h
129 129

  
130 130
	/* Functions */
131 131
	/* Constructor: MUST BE CALLED BY DERIVED CLASSES*/
132
	MonMeasure(class MeasurePlugin *mp, MeasurementCapabilities mc, class MeasureDispatcher *ptrDisp);
132
	MonMeasure(class MeasurePlugin *mp, MeasurementCapabilities mc, class MeasureDispatcher *ptrDisp, int tx_every=1);
133 133

  
134 134
	virtual ~MonMeasure() {
135 135
		delete[] param_values;
monl/plugins/hopcount_measure.cpp
19 19

  
20 20
#include "hopcount_measure.h"
21 21

  
22
HopcountMeasure::HopcountMeasure(class MeasurePlugin *m, MeasurementCapabilities mc, class MeasureDispatcher *md): MonMeasure(m,mc,md) {
23
	tx_every = 100;
22
HopcountMeasure::HopcountMeasure(class MeasurePlugin *m, MeasurementCapabilities mc, class MeasureDispatcher *md): MonMeasure(m,mc,md,100) {
24 23
};
25 24

  
26 25
HopcountMeasure::~HopcountMeasure() {
monl/plugins/loss_measure.cpp
20 20
#include "loss_measure.h"
21 21
#include "napa_log.h"
22 22

  
23
LossMeasure::LossMeasure(class MeasurePlugin *m, MeasurementCapabilities mc, class MeasureDispatcher *md): MonMeasure(m,mc,md) {
23
LossMeasure::LossMeasure(class MeasurePlugin *m, MeasurementCapabilities mc, class MeasureDispatcher *md): MonMeasure(m,mc,md,10) {
24 24
	mSeqWin = NULL;
25
	tx_every = 10;
26 25
}
27 26

  
28 27
void LossMeasure::init() {
monl/plugins/rtt_measure.cpp
19 19
#include "rtt_measure.h"
20 20
#include <sys/time.h>
21 21

  
22
RttMeasure::RttMeasure(class MeasurePlugin *m, MeasurementCapabilities mc, class MeasureDispatcher *md): MonMeasure(m,mc,md) {
23
	tx_every = 10;
22
RttMeasure::RttMeasure(class MeasurePlugin *m, MeasurementCapabilities mc, class MeasureDispatcher *md): MonMeasure(m,mc,md,10) {
24 23
}
25 24

  
26 25
RttMeasure::~RttMeasure() {

Also available in: Unified diff