Revision f01eb1f0

View differences:

measures.c
68 68
		add_measure(&playout_delay, GENERIC, 0, 120, "PlayoutDelay", st, sizeof(st)/sizeof(enum stat_types), NULL, MSG_TYPE_ANY);	//[peers]
69 69
	}
70 70
	gettimeofday(&tnow, NULL);
71
	monNewSample(playout_delay, ((int64_t)(tnow.tv_usec + tnow.tv_sec * 1000000UL - timestamp)) / 1000000.0);
71
	monNewSample(playout_delay, ((int64_t)(tnow.tv_usec + tnow.tv_sec * 1000000ULL) - (int64_t)timestamp) / 1000000.0);
72 72
}
73 73

  
74 74
/*
......
108 108
		add_measure(&chunk_delay, GENERIC, 0, 120, "ReceiveDelay", st, sizeof(st)/sizeof(enum stat_types), NULL, MSG_TYPE_ANY);	//[peers]
109 109
	}
110 110
	gettimeofday(&tnow, NULL);
111
	monNewSample(chunk_delay, ((int64_t)(tnow.tv_usec + tnow.tv_sec * 1000000UL - timestamp)) / 1000000.0);
111
	monNewSample(chunk_delay, ((int64_t)(tnow.tv_usec + tnow.tv_sec * 1000000ULL) - (int64_t)timestamp) / 1000000.0);
112 112
}
113 113

  
114 114
/*

Also available in: Unified diff