Revision 186a880e

View differences:

measures.c
25 25
	id->mhs[j] = monCreateMeasure(BYTE, RXONLY | PACKET | IN_BAND);
26 26
//	monSetParameter (id->mhs[j], P_PUBLISHING_RATE, 100);
27 27
	//Uncomment the following line to publish results
28
	monPublishStatisticalType(id->mhs[j], NULL, st , sizeof(st)/sizeof(enum stat_types), NULL);
28
	monPublishStatisticalType(id->mhs[j], NULL, "OfferStreamer", st , sizeof(st)/sizeof(enum stat_types), NULL);
29 29
	monActivateMeasure(id->mhs[j], id->addr, MSG_TYPE_CHUNK);
30 30
	j++;
31 31
	// TX bytes
32 32
	id->mhs[j] = monCreateMeasure(BYTE, TXONLY | PACKET | IN_BAND);
33 33
//	monSetParameter (id->mhs[j], P_PUBLISHING_RATE, 100);
34 34
	//Uncomment the following line to publish results
35
	monPublishStatisticalType(id->mhs[j], NULL, st , sizeof(st)/sizeof(enum stat_types), NULL);
35
	monPublishStatisticalType(id->mhs[j], NULL, "OfferStreamer", st , sizeof(st)/sizeof(enum stat_types), NULL);
36 36
	monActivateMeasure(id->mhs[j], id->addr, MSG_TYPE_CHUNK);
37 37
	j++;
38 38
	/* HopCount */
39 39
	id->mhs[j] = monCreateMeasure(HOPCOUNT, TXRXUNI | PACKET | IN_BAND);
40 40
//	monSetParameter (id->mhs[j], P_PUBLISHING_RATE, 100);
41 41
	//Uncomment the following line to publish results
42
	monPublishStatisticalType(id->mhs[j], NULL, st , sizeof(st)/sizeof(enum stat_types), NULL);
42
	monPublishStatisticalType(id->mhs[j], NULL, "OfferStreamer", st , sizeof(st)/sizeof(enum stat_types), NULL);
43 43
	monActivateMeasure(id->mhs[j], id->addr, MSG_TYPE_CHUNK);
44 44
	j++;
45 45
	/* Round Trip Time */
46 46
	id->mhs[j] = monCreateMeasure(RTT, TXRXBI | PACKET | IN_BAND);
47 47
	//monSetParameter (id->mhs[j], P_PUBLISHING_RATE, 100);
48 48
	//Uncomment the following line to publish results
49
	monPublishStatisticalType(id->mhs[j], NULL, st , sizeof(st)/sizeof(enum stat_types), NULL);
49
	monPublishStatisticalType(id->mhs[j], NULL, "OfferStreamer", st , sizeof(st)/sizeof(enum stat_types), NULL);
50 50
	monActivateMeasure(id->mhs[j], id->addr, MSG_TYPE_ANY);
51 51
	j++;
52 52
	/* Loss */
......
54 54
	//monSetParameter (id->mhs[j], P_PUBLISHING_RATE, 100);
55 55
	//monSetParameter (id->mhs[j], P_WINDOW_SIZE, 100);
56 56
	//Uncomment the following line to publish results
57
	monPublishStatisticalType(id->mhs[j], NULL, st , sizeof(st)/sizeof(enum stat_types), NULL);
57
	monPublishStatisticalType(id->mhs[j], NULL, "OfferStreamer", st , sizeof(st)/sizeof(enum stat_types), NULL);
58 58
	monActivateMeasure(id->mhs[j], id->addr, MSG_TYPE_CHUNK);
59 59
	j++;
60 60
	// for static must not be more then 10 or whatever size is in net_helper-ml.c

Also available in: Unified diff